How to allow people to edit my google spreadsheet but to deny them updating my app script - spreadsheet

I have created a Google Spreadsheet and gave some users the right to edit the sheet.
I created an App Script for this sheet which reacts on the sheet being edited.
So far so good.
My problem is, I want the users to be able to update the sheet, but I don't want them to be able to change the App Script.
As far as I can see there's no option to do this.
Or am I missing something?
Thanks in advance and greetings
Henk

Related

How to add vba code in ms access

I am using web app, and I want to add the vba code after I update the Open date.
but when I click after update, I can just add macro, there is no vba code options.
I google it but I can't find any property sheet even I click right. How can I add the vba code there?
You can't. Access web apps don't support VBA code. There is no way to work around that, to my knowledge.
You can always migrate to a normal database.

Restricted Permissions

So I'm using Tableau 10 and Tableau server. I don't have direct control over the server side of things. But I have full control over the tableau dashboard.
My Issue:
Users need to download the data from workbooks. When they go to one particular workbook the option to download the data is not available:
They can however download it using the tool tips - but to download the entire data set in one go, they'd need to use the option button above.
Tableau server settings:
These look like they are fine. I also have another workbook in this area and that one does not experience this problem.
I am "Publisher" and my boss is "Owner" - she can see it but I can't. All of this suggests it's a workbook setting?! But where?!?
Users need to download the data from workbooks. When they go to one particular workbook the option to download the data is not avaliable:
They can however download it using the tool tips - but to download the entire data set in one go, they'd need to use the option button above.
Tableau server settings:
These look like they are fine. I also have another workbook in this area and that one does not experience this problem.
I am "Publisher" and my boss is "Owner" - she can see it but I can't. All of this suggests it's a workbook setting?! But where?!?
Once a user clicks into a sheet of your dashboard, the Data or Crosstab selections of the Download button will be activated. It is greyed out on dashboards because there could be multiple sheets.
One trick is to make a dedicated download sheet and upload it with the rest of your dashboard. If you upload just a sheet, then all selections on the Download button are available without the user needing to click into anything.
On a published dashboard, if you click on a worksheet on the dashboard, the download links become available. This will avoid the need to upload the worksheet separately.

Only I am able to save a macro-enabled workbook?

All, I have created a workbook that has some macros in it to import data. The idea is that the file is a master file, and every time you import data with it, it is supposed to place that data on the end of the existing data, and then you save it and move on.
The problem is, I am the only user that can save the workbook. Now, two of the sheets in my workbook I have protected, so that they cannot be edited. I have done this so that nothing can accidentally be removed (buttons, instructions, notes, etc). My users have agreed that this protection is a good thing.
But what I think is happening is our network is making anyone who didn't author this file open it as Read Only, and then they cannot save to it. I first thought maybe if added a save macro (and command button) that it would fix it. No dice.
Next, I had the workbook unprotect, and then re-protect itself when the user clicks the save button. Nope, still opening as Read Only.
I then put code in the Workbook_Open() Sub that changed it from Read Only to Read Write. This caused a box to popup when opening the sheet that said the file was in use by "Another User," and it was locked for editing.
The last thing I tried was adding the other users as Authors to the workbook. And it STILL opens as a Read Only file.
I think this has to do with the network settings here in our office (well, corporate-wide, but anyway). These are policies that cannot be changed. Can anyone help me find a work-around that allows my sheets to be locked for editing, but allows my users to save to my workbook?
You can see here that I have added three other users as Authors of the file (This is the information page of the file as opened by a user.):
So it turns out that the issue was not related at all to the workbook...
When attempting to Save As in the folder where the workbook was located, we found out that the user I was using for the tests simply did not have write permissions to the folder in question. I had write permissions to it based on a previous assignment.
So much frustration over something so simple.

Excel - Keep macros enabled when sheet is saved as new

I have an excel macro-enabled sheet that users open, fill out a list of information (name, date, etc) and click a save button. This creates a new file name based on the information, and saves the file to a network location. The users then continue to work with the sheet.
I forced the users to enable macros (excellent tutorial here: http://datapigtechnologies.com/blog/index.php/forcing-your-clients-to-enable-macros/) and that works well, however once the file name changes, macros are disabled. I assume this due to the fact that it is an untrusted network location. The sheet will be used by many different computers, so I would like to find a vba workaround rather than relying on an excel setting.
Edit: I think I have the answer: As #mehow said based on the link I have posted, I can first run the part of the macro that finds the file name, then lock the workbook all except the start page, then save the workbook as the new name, then hide the start page and show everything else. That way if macros are disabled once the sheet is saved it should force the user to re-enable without compromising the protection. I'll post once I find outwhether it will work.
Edit: It works! Thanks.

How to import Excel related BOM-list content into a excel sheet in Excel-VBA?

How to implement a spreadsheet to do something more dynamic and recyclable for more user to use? By allowing the user to browse and import 2 excel related BOM-list files from the computer local drive into sheet 2/3 before i run the above code to find the differences?
Eg: Something like having two CommandButton's which can import all the excel BOM-list data information into sheet 2/3 without making any changes to the original? Before running any comparison test and a reset button for removeing all the content in sheet 2/3?
Sorry for my poor command of English and explanation if its not clear to you. Thanks for your time/help in advance. :)
i still don't understand what you are looking for.
As far as i can read in your code, you are missing the workbook manipulation part.
You need to open the workbook you want to copy from with the open method as described here.
Then, you can manipulate the workbook and its content as you have done in your code and as described in this tutorial .