Lock a sheet when date in column > 24 hours: Google Sheets - Scripteditor?
问题 In order to prevent data loss caused by other contributors, I'd like to lock an entire sheet for all data < today. It needs to be possible to do input and make changes for entries today. An simple example of the master file : EXAMPLE - LOCK < TODAY So, each row will lock for others when the date in column A < today. This link brought me closer but I'm having difficulties with var range = ss.getRange('1:1').getValues()[0]; which gives me an error on line 31: "TYPE-ERROR: can't find function