User form for new messages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Back
Top