apps-script-samples
apps-script-samples copied to clipboard
onSelectionChange(e)
I've been trying to use onSelectionChange(e) however it yields the error TypeError: Cannot read property 'range' of undefined. To clarify, I did not make any changes to the code, I just copied and pasted it from https://developers.google.com/apps-script/guides/triggers and into the editor. Also, I tried the following triggers and they worked:
-
onEdit(e)
-
onOpen(e) So I'm not sure what's going on, any help would be much appreciated.
I have the exact same issue :/