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.
 
Joined
Oct 30, 2011
Messages
3
Reaction score
0
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
 

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

Similar Threads

Outlook 2007/2010 - "New mail" button event 0
How to get a file from a web page 1
Excel Excel VBA_Copy sheet to new workbook, save to desktop, then email 0
NewMail event 0
Outlook Outlook 2007 macros 0
Excel Applying Code to a Column 0
Outlook Outlook Events 0
Outlook Outlook VBA Toolbar 7

Top