function onEdit() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[1];
if (sheet.getActiveCell() = "E11"){
sheet.getRange('E12').activate();
sheet.getCurrentCell().setValue('FALSE');
sheet.getRange('E13').activate();
sheet.getCurrentCell().setValue('FALSE');
sheet.getRange('E14').activate();
sheet.getCurrentCell().setValue('FALSE');
}
if (sheet.getActiveCell() = "E12"){
sheet.getRange('E11').activate();
sheet.getCurrentCell().setValue('FALSE');
sheet.getRange('E13').activate();
sheet.getCurrentCell().setValue('FALSE');
sheet.getRange('E14').activate();
sheet.getCurrentCell().setValue('FALSE');
}
}
So I want to make it so that if a TRUE statement is inputted, the other checkbox will be FALSE and viceversa.
getValue
&setValue
, plus a JavaScript comparison. Note that you can simply recorded macros by removing / replacing theactivate()
+CurrentCell()
logic with the more direct logic: obtain range -> do thing to range – Goggin