I try to fire a script when a value in a certain cell or range of cells changes. (it's not changed by the user, so I can't use onEdit)
I've tried to use onChange, but this doesn't fire my script at all
function onChange() {
// verwijder verwerkte 'klaar' regels
var actieSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Actie");
var asRange = actieSheet.getRange("F3:F25")
var asValues = asRange.getValues();
for (var i = 0; i < 22; i++) {
x1='false';
asValues[i][0]= false;
}
actieSheet.getRange("F3:F25" ) .setValue (asValues);
}
Is there a way to trigger a script if a Cell changes or even if there is any change in a sheet, it will do for me?