|
-
Dec 3rd, 2009, 11:38 AM
#2
Addicted Member
Re: VBA - Outlook 2007 - New Mail
You need to look into the MailItem object and the Application_NewMailEx event in the VBA help. The Application_NewMailEx event is fired every time you receive a message and it's parameter is a collection of the received messages. The MailItem object has the Subject and Body properties you're looking for.
Remember you will need to check the arriving message to determine if it is a MailItem or not before accessing the Subject and Body properties, or you may get a runtime error.
Good luck.
-EM
---
REMEMBER: If your issue is resolved, use the Thread Tools menu to set it as such, and be sure to rate the posts that help you the most!

Just because I was jealous of g4hsean! 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|