Certainly.
Code:
Public Sub DisplaySenderDetails()
Dim ol As Outlook.Application
Dim Explorer As Outlook.Explorer
Dim CurrentItem As Outlook.MailItem
Dim Sender As Outlook.AddressEntry
Dim Contact As Outlook.ContactItem
Set ol = CreateObject("Outlook.Application")
Set Explorer = ol.ActiveExplorer
' Check whether any item is selected in current folder.
If Explorer.Selection.Count Then
' Get the first selected item.
Set CurrentItem = Explorer.Selection(1)
' Check for type of selected item as only MailItem object has Sender property.
If CurrentItem.Class = olMail Then
Set Sender = CurrentItem.Sender
Debug.Print CurrentItem.SenderEmailAddress
' There is no sender if item is in Draft or Outbox
If Sender Is Nothing Then
MsgBox "There is no sender for current email", vbInformation
Else
Set Contact = Sender.GetContact
If Not Contact Is Nothing Then
' Sender is stored in contacts folder so contact item can be displayed.
Contact.Display
Else
' If contact cannot be found, display address entry in properties dialog box.
Sender.Details 0
End If
End If
End If
End If
End Sub