autorun macro in startup o in new email

  • Thread starter Thread starter Julio Carvajal
  • Start date Start date
J

Julio Carvajal

Hi,
I need run one simple macro in start of outlook.
I write in ThisoutlookSession
Sub application_startup
msgbox "Hello"
endsub
but not happened nothing when I start outlook
Why?
Other example:
Private Sub oApp_NewMail()
MsgBox "You have received new mail!"
End SubWhen I received one new mail nothing happened tooIf I click in the
any line of macro and click in play the macro run good.Thanks
 
Am Wed, 2 Aug 2006 11:17:42 -0600 schrieb Julio Carvajal:
Sub application_startup
msgbox "Hello"
endsub

At least the "Application" must start with an upper case.
 
Thanks, I change the upper the first letter of name and the macro run
fine!!!
 
Back
Top