How to allow onEdit function to affect protected c

2019-01-20 17:43发布

I have a sheet that has protected ranges so any user with the link can edit column A, and an onEdit() function that writes to column B based on their input which is protected so only I can edit it when logged in.

This protection prevents the onEdit() from doing its thing for anonymous users so column B never has its value set.

How can you override this? I like the way excel allows this.

1条回答
迷人小祖宗
2楼-- · 2019-01-20 18:37

You can use an installable trigger running on edit. Such a trigger runs as the user who created it, regardless of whose edit caused it to run. So, if you are the creator of the trigger and your account is authorized to edit protected cells, they will be updated.

查看更多
登录 后发表回答