View Single Post
  #4  
Old May 1st 07, 08:16 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default From and to Fields VBScript

See MSDN and Outlook VBA help file. http://www.outlookcode.com is good place
to start.
The code should be

Set objSender = Item.SenderName

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Gil" wrote in message
ups.com...
Is there a good reference for this type of info?

Pardon my ignorance but would this work to retrieve the sender?

Set objFormTab = Item.GetInspector.ModifiedFormPages("Message")
Set objSender = objFormTab.MailItem("SenderName")

Thanks,
Gil

On May 1, 2:02 pm, "Dmitry Streblechenko" wrote:
MailItem object: To, Recipients, SenderName, SenderEmailAddress
properties




Ads