Why can't I create this script?
function setValueTest(value) {
SpreadsheetApp
.getActiveSpreadsheet()
.getSheetByName('sheet1')
.getRange('D20')
.setValue('Hello');
return(value);
}
Error message:
Error: Exception, You do not have permission to call setValue (line 11).
But if I "don't have permission", why can I run other scripts? which also define values
But if I do that I can (it doesn't):
function setValueTest(value) {
return(value);
}