My script quits when I use openById().
The script is supposed to detect when a user has modified two adjacent columns in a master list spreadsheet (i.e. user enters the
You won't be able to do this with a simple trigger (it won't have the right authorization), use an installable trigger for your function onEdit
for this purpose instead. This will prompt you for the authorization it needs to run properly.
The below script should set it up for you, all you need to do is run it once and you should be good to go.
function createSpreadsheetEditTrigger() {
var ss = SpreadsheetApp.getActive();
ScriptApp.newTrigger('onEdit')
.forSpreadsheet(ss)
.onEdit()
.create();
}