GetAddressEntry Method (Session Object)
GetAddressEntry Method (Session Object)
The GetAddressEntry method returns an AddressEntry object.
Syntax
Set objAddressEntry = objSession.GetAddressEntry(entryID)
objAddressEntry
On successful return, represents the AddressEntry object specified by entryID.
objSession
Required. The Session object.
entryID
Required. String. Specifies the unique identifier of the address entry.
Remarks
For more information, see Using Addresses.
Example
This code fragment displays the name of a user from a MAPI address list:
' from the function Session_GetAddressEntry
If objSession Is Nothing Then
MsgBox "No active session, must log on"
Exit Function
End If
If "" = strAddressEntryID Then
MsgBox ("Must first set string variable to address entry ID")
Exit Function
End If
Set objAddrEntry = objSession.GetAddressEntry(strAddressEntryID)
MsgBox "Full address = " & objAddrEntry.Type & ":" _
& objAddrEntry.Address