autorun macro in startup o in new email

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
 
M

Michael Bauer [MVP - Outlook]

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.
 
J

Julio Carvajal

Thanks, I change the upper the first letter of name and the macro run
fine!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top