NameSpace.GetRecipientFromID Method
Outlook Developer Reference |
Returns a Recipient object identified by the specified entry ID (if valid).
Syntax
expression.GetRecipientFromID(EntryID)
expression A variable that represents a NameSpace object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
EntryID | Required | String | The EntryID of the recipient. |
Return Value
A Recipient object that represents the specified recipient.
Remarks
This method is used for ease of transition between MAPI and OLE/Messaging applications and Microsoft Outlook.
Example
This Visual Basic for Applications (VBA) example gets the entry ID of the first recipient in the item in the Inbox folder with subject 'Test', obtains the recipient from the entry ID, and displays the recipient name. To run this example without any errors, make sure there is a mail item with subject 'Test' in the Inbox. The example may also fail if there are other types of items with subject 'Test' other than mail item in the Inbox.
Visual Basic for Applications |
---|
|
See Also