ik wil het email adres en de naam ophalen maar ik krijg alleen maar het adres.
kan iemand mij vertellen hoe ik de naam kan ophalen??
Ik gebuik onderstaande code om het adres op te halen.
Set objMsg = Application.ActiveInspector.CurrentItem
strEntryID = objMsg.EntryID
strStoreID = objMsg.Parent.StoreID
Set objCDOMsg = objSession.getMessage(strEntryID, strStoreID)
Set objAddEntry = objCDOMsg.Sender
If objAddEntry.Type = "EX" Then
Set objField = objAddEntry.Fields(&H800F101E)
For Each fld In objField.Value
If Left(fld, 5) = "SMTP:" Then
strAddress = Mid(fld, 6)
' Debug.Print strAddress
StoreAddress = strAddress
Exit For
End If
Next
Else
' Debug.Print objAddEntry.Address
StoreAddress = objAddEntry.Address
End If
kan iemand mij vertellen hoe ik de naam kan ophalen??
Ik gebuik onderstaande code om het adres op te halen.
Set objMsg = Application.ActiveInspector.CurrentItem
strEntryID = objMsg.EntryID
strStoreID = objMsg.Parent.StoreID
Set objCDOMsg = objSession.getMessage(strEntryID, strStoreID)
Set objAddEntry = objCDOMsg.Sender
If objAddEntry.Type = "EX" Then
Set objField = objAddEntry.Fields(&H800F101E)
For Each fld In objField.Value
If Left(fld, 5) = "SMTP:" Then
strAddress = Mid(fld, 6)
' Debug.Print strAddress
StoreAddress = strAddress
Exit For
End If
Next
Else
' Debug.Print objAddEntry.Address
StoreAddress = objAddEntry.Address
End If