简体   繁体   English

复制谷歌表格后受保护单元格的问题

[英]Issues with Protected cells after duplicating the google sheet

I currently working on a GAS add-on project.我目前正在从事 GAS 附加项目。 I have a Google sheet Template on a teamdrive and an add-on working only with this template.我在 teamdrive 上有一个 Google 表格模板和一个仅适用于此模板的插件。

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.最接近的解决方案是将属性setWarningOnly添加到 Protection,因此他们会在能够编辑单元格之前收到弹出警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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