onOpen(e) fail?

45 views
Skip to first unread message

Bitey 6000

unread,
Jul 21, 2022, 12:29:05 PM7/21/22
to Google Apps Script Community
Hi All,

Am I'm right that currently onOpen(e) fails if CONSTANTS are declared outside a function?

I have created a trigger that calls the function instead.

thanks for your time ...

Reno Blair

unread,
Jul 21, 2022, 1:37:36 PM7/21/22
to Google Apps Script Community
No; you can declare constants outside of functions. Can you share the specific error message you are getting, and a sample of your code?

Bitey 6000

unread,
Jul 22, 2022, 3:16:44 AM7/22/22
to Google Apps Script Community
Oops just found that I had a second onOpen() function lurking within my code.  All working now :)
Reply all
Reply to author
Forward
0 new messages