views:

129

answers:

2

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.

A: 

Have you looked at the Application_Startup() event?

Galwegian
+5  A: 

Use the Application_Startup event in ThisOutlookSession:

Private Sub Application_Startup()
    MsgBox "Foo"
End Sub
Alistair Knock