function onOpen() is not running

前端 未结 5 470
谎友^
谎友^ 2020-12-31 03:10

My function includes adding a menu and toast to the document. I have verified that the trigger (onOpen) is set as well. It only works when a user goes into Tools, Script Man

5条回答
  •  天命终不由人
    2020-12-31 03:52

    In my case there was a reference error, that while did not stop the script entirely, it did stop the menu from appearing.

    I was only able to detect that error after I run a debug on the script.

提交回复
热议问题