Actually there should be no "set" since SenderName property is a string, not
an object:
strSender = Item.SenderName
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Dmitry Streblechenko" wrote in message
...
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