Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook NewMail

Status
Not open for further replies.

greg303

Technical User
Oct 28, 2003
24
US
How can monitor Outlook for new mail and read things like subject and senders email address?
 
Hi, Put this code in a Module (In Tools... Macro... VB Editor)

Code:
Public Sub ReadMailHeader(InputMsg As MailItem)
    'read Sender and Subject and put in msgbox
    MsgBox "New Message : " & InputMsg.SenderName & ": " _ 
    & InputMsg.Subject
End Sub

Then choose "Run a Script" as the option in the Rules Wizard

Hope this helps...

jgjge3.gif
[tt]"Very funny, Scotty... Now Beam down my clothes."[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top