Can I run the VBA function when Outlook starts?

I want the VBA function to start immediately after starting Outlook. Is this possible, and if so, what should I do? My searches on Google did not help me.

I do not mind that a security warning will appear.

+3
source share
2 answers

Use the event Application_Startupin ThisOutlookSession:

Private Sub Application_Startup()
    MsgBox "Foo"
End Sub
+18
source

Did you view the Application_Startup () event ?

+2
source

Source: https://habr.com/ru/post/1720056/


All Articles