Firstly, forgive my bad english and my little knowledge of GAS.

I have an SpreadSheet that will be programmatically copied about 500 times (one copy for each student). Teachers will fill in the attendance of the students; and parents will be able to view and insert comments.

Deploying code is quite ready, but while testing I have found THIS ISSUE:

In the template, I have named and protected lots of ranges, in order to teachers not to spoil the sheets. If I share the template, solution works. But If I COPY the template, either manually or programmatically, the protection disappeares in the copies, although the named ranges are still there.

For my distress, I have read in another message that range protection cannot be set programmatically, so I will not be able to restore the protection that way.

Any suggestions?

没有正确的解决方案

其他提示

You might want to check this out.

It sounds like you have to do a 2 step process: copy the template creating a new sheet and then copy the template permissions to the new sheet. Good luck

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top