I'm trying to move the cursor (select cell) when the user clicks on the Sheet. I've tried so many options and none of them work. The cursor just stays where I click, instead of moving to the specified cell. Note: I change the background color of the clicked cell just to make sure the selection trigger is working.
function onSelectionChange(e) {
var range = e.range;
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
range.setBackground("blue");
sheet.setCurrentCell("a1").activate();
}
Any help greatly appreciated.