NewMail event


Joined
Jan 31, 2012
Messages
1
Reaction score
0
Hi,

I have a little problem when I need to trigger NewMail event in Outlook VBA. I wrote this code in ThisOutlookSession:


Code:
[LEFT][COLOR=blue]Private[/COLOR] [COLOR=blue]Sub[/COLOR] Application_NewMail() [/LEFT]

 
[LEFT]   [COLOR=blue]Call[/COLOR] CheckforNewDocConMail [/LEFT]
 
[LEFT][COLOR=blue]End Sub[/COLOR] [/LEFT]

The problem is that in my outlook application there are two mailboxes (see attachment):
1) Mailbox - My name;
2) Mailbox - company name.

The first mailbox is my personal mailbox and the second mailbox is shared mailbox and may colleagues also have connection to this mailbox. And it seems that NewMail event is triggered only when I receive new mail into my personal mailbox, however, I need this code to be triggered when the new mail comes into the shared mailbox.

Is there any way to do that?

Kind regards,
walduxas
 

Attachments

Ad

Advertisements


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


Top