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
It looks like the problem may be that "sheet" isn't defined, which is why the toast is failing.