I'm completely new to scripts and need a script for Apps Script to reset cell(s) values to a value determined in another set of cells.
Say, when function Reset() is ran, L9 should change to the value in M9. This function should at the same time set value at L10 to M10, L11 to M11, and L12 to M12.
Any help would be greatly appreciated, and a bit of explaining what each line is doing would be great to help me learn!
I was running a function to decrease the L row values as follows:
function Fire1() {
const sheet = SpreadsheetApp.getActiveSheet();
const range = sheet.getRange("L9");
range.setValue(range.getValue()-1);
}
and tried different things like
function Reset() {
const sheet = SpreadsheetApp.getActiveSheet();
const range = sheet.getRange("L9");
range.setValue(range.getValue("M9"));
}
again, barely understanding what's going on.