I want to get the SenderName
and and To
properties from a MailItem
object, but they are coming through as blank.
I can see that th
Try the following...
Use the code on regular module
Option Explicit
Public Sub Example()
Dim olMsg As mailitem
Set olMsg = ActiveExplorer.Selection.Item(1)
'// All print on Immediate Window
Debug.Print olMsg.SenderName
Debug.Print olMsg.sender
Debug.Print olMsg.SenderEmailAddress
Debug.Print olMsg.Categories
Debug.Print olMsg.subject
Debug.Print olMsg.To
Debug.Print olMsg.CC
Debug.Print olMsg.ReceivedByName
Debug.Print olMsg.SenderEmailType
End Sub