PDA

Click to See Complete Forum and Search --> : How do I get a sender's email addr. in Outlook VBA?


pshell
Jul 4th, 2000, 07:15 PM
Hi,

I'm trying to write a VBA module which will take
the current message that I'm reading in Outlook 2000
(on Windows NT 4.0) and automatically add the sender
to my contact list (I'd rather not have to bother opening the message first because I need to do this for a large number of messages). In order to do this I need both
the sender's name (which I can get through the
SenderName property of the message item) and also the
email address. It's this latter item which is problematic.
*Sometimes* the ReplyRecipients seems to contain
this email address but usually it doesn't, even
though in Outlook you can tell that it's provided.

Any suggestions? I looked through the on-line
documentation and microsoft's web site but it didn't
seem to help.

Thanks!

--Pete Shell