Is it possible to run a VBA function whenever Outlook starts up?

我的未来我决定 提交于 2019-11-29 21:01:39

问题


I would like to have a VBA function run as soon as Outlook starts up. Is this possible and if so, what do I need to do? My searches on Google have failed me.

I don't mind that the security alert will pop up.


回答1:


Use the Application_Startup event in ThisOutlookSession:

Private Sub Application_Startup()
    MsgBox "Foo"
End Sub



回答2:


Have you looked at the Application_Startup() event?



来源:https://stackoverflow.com/questions/1565231/is-it-possible-to-run-a-vba-function-whenever-outlook-starts-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!