简体   繁体   中英

Issues with Protected cells after duplicating the google sheet

I currently working on a GAS add-on project. I have a Google sheet Template on a teamdrive and an add-on working only with this template.

The idea is that my collaborators will make a copie of the template on their drive and download the add-on on the store but I am stuck on the fact that my protected cells on my google sheet template are correctly copied but my have no more effect because my collaborators become owners of them.

Is there a way around this problem?

Thanks for your answers.

It's not possible to protect a cell from the Spreadsheet owner .

As you can read in the documentation :

The spreadsheet owner is always able to edit protected ranges and sheets.

Since they are the owners of the new Spreadsheet, it makes no sense to have some kind of limitation. Maybe you would prefer making copies and sharing them with your collaborators.

The closest solution would be adding the property setWarningOnly to the Protection, so they would get a pop-up warning before being able to edit a cell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM