Application_Startup() not firing

前端 未结 4 450
梦谈多话
梦谈多话 2021-01-16 03:03

I\'ve code in the \"ThisOutlookSession\" module.

Application_ItemSend works, events are triggered when sending mail.

Application_Startup runs when I initiate

4条回答
  •  暖寄归人
    2021-01-16 03:30

    Was experiencing same problem with Application_Startup() procedure not firing after a system reload and restore of my VBAProject. Checked macro settings, digitally signed the project - no luck. Received no button to Enable VBA during startup, like in Office 2010. VBA would function, but required me to manually fire the Application_Startup() procedure.

    Tried creating a new, temporary "Private Application_Startup()" procedure, but no joy.

    I deleted "Public" statement that preceded the Application_Startup() declaration. Saved, closed VBA and Outlook. Re-opened and suddenly it started working. Have restored the "Public", saved, re-opened, and it now seems to work properly. No explanation.

提交回复
热议问题