I am managing a Google spreadsheet using a script. The onEdit function works fine - I can color the cell red by setting
SpreadsheetApp.getActiveRange().setBackgroundRGB(255, 0, 0);
in the onEdit function. However, I would like to do the same code in the onClick function, so when a user clicks on a cell, it immediately turns red. Is it possible to do this? I cannot find a way to do this in the documentation.
source share