I'm using a piece of Google Script to copy from one Google Sheet to another Google Sheet, but also doing some column and data manipulation (so it's not just a straight copy).
The code was inspired by this question: Event trigger to move row to one of two other sheets based on values in 2 columns
function onEdit(event) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var s = event.source.getActiveSheet();
var r = event.range;
...
}
Unfortunately it seems that when you check Multiple checkboxes in one go by highlighting multiple cells and pressing the space bar, the OnEdit event
object will only detect the first cell as being edited, and the other cells not being edited.
I tested this by doing:
Browser.msgBox(event.range.getNumRows())
No matter how many Checkboxes I edit in one go; it always returns 1
Is there a correct way to get the true range of Cells edited in one go?
Thanks.