Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 741
Richard Avatar asked Oct 14 '09 09:10

Richard


2 Answers

Use the Application_Startup event in ThisOutlookSession:

Private Sub Application_Startup()
    MsgBox "Foo"
End Sub
like image 195
Alistair Knock Avatar answered Oct 20 '22 06:10

Alistair Knock


Have you looked at the Application_Startup() event?

like image 32
Galwegian Avatar answered Oct 20 '22 06:10

Galwegian