Outlook Outlook - New mail button event

Joined
Oct 30, 2011
Messages
3
Reaction score
0
Hi

I have made a new Outlook template with some VBA code.

I want the code on this template to be executed, when the user press the "new mail" button.
I have put a startup macro in ThisOutlookSession, and when I execute this startup macro everything works out fine, but I would like it to be triggered automatic when the user press the "New mail" button.

Any solution.
 
Thank you Stoneboysteve

Yes, I have tried placing code inside application_newmail

Even if I place a simple Msgbox "Hello World" in application_newmail it doesn't get fired.

As far as I know application_newmail is triggered when you recieve a new mail.

The startup code may only be executed when the user press the button "New e-mail" in the ribbon bar

/tlucas
 
Back
Top