I was running Google Sheets with only 1 Sheet and this script (updating timestamp onEdit)
function onEdit(e) {
if (!e.value) return;
e.source.getActivesheet()
.getRange('G50')
.setValue(new Date());
}
but as soon as I added 2 additional sheets, it stopped working. I dont get it, because I thought, this script will now run on either of these sheets as soon as I edit on. (but it does nothing)
What am I not thinking about? Thanks for help in advance.