i have Google sheet for adding, updating , and deleting some information for patients , i want to prevent the users from changing the assigned script of these shapes and prevent them from changing the position for them
I want to prevent the users from changing the assigned script of these shapes and prevent them from changing the position for them
I am unsure if it is possible to restrict editing of inserted drawings/shapes on a sheet however having a similar issue of scripts getting unassigned accidently I created a function that can assign scripts, this is then on a trigger as often as needed, for me each day.
The current assumption for the function is that there is only 1 drawing/shape per sheet and this is selected by the
var num = 0selecting the first drawing. This would have to be adjusted if you had multiple per sheet.You'd need to adjust the
Sheet1/Script1etc. with your relevant sheets and scripts.Ref:
Drawing Class
getDrawings
setOnAction