User form for new messages

T

Tahani

Dear Experts,
I want to allow outlook to view a form on the screen (as an alert) whenever I
receive an e-mail from specified user. For example (I want a message to be
displayed whenever “Anne †sent an e-mail)
This will help me to know that Anne sent me an e-mail even if I’m working
with another program.
Sp can I have a Visual basic script to do that

Actually I made a rule in Outlook 2003 , but is there any way to
implement this in VB user form so that this alert for new email messages
appear in while I'm working any other program?

As I posted this question in Outlook programming - VBA page and I got the
answer of using a user form, and the proper place for checking incoming
mails
would be the ItemAdd event of the Inbox Items.
Actually I'm new into VBA programming , so can I get help in writing the code?

Again, Thanx in advance for any help anyone could provide
 
K

Ken Slovak - [MVP - Outlook]

Take a look at the code sample at
http://www.outlookcode.com/d/code/zaphtml.htm#cw. It takes incoming messages
and converts any that are HTML to RTF format. You can use that as a basis
for what you want.

Use the MailItem.SenderName property to get the name of the sender of the
email and if it's who you are interested in display a form or a MsgBox to
notify you.
 

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

Top