apps-script-samples icon indicating copy to clipboard operation
apps-script-samples copied to clipboard

onSelectionChange(e)

Open 8Ozymandias opened this issue 4 years ago • 1 comments

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.

8Ozymandias avatar May 03 '20 04:05 8Ozymandias

I have the exact same issue :/

alex-lechner avatar Apr 23 '21 14:04 alex-lechner