Is it possible to run a VBA function whenever Outlook starts up?
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. Use the Application_Startup event in ThisOutlookSession : Private Sub Application_Startup() MsgBox "Foo" End Sub 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