CreateRecipient Method

Applies To

NameSpace object.

Description

Creates and returns a Recipient object. This method is most commonly used to create a Recipient object for use with the GetSharedDefaultFolder method (for example, to open a delegator's folder). It can also be used to verify a given name against an address book.

Syntax

expression.CreateRecipient(RecipientName)

expression An expression that returns a NameSpace object.

RecipientName Required String. The display name of the recipient.

Example

This example obtains the default Calendar folder for the user Eric Lang.

Set myRecipient = olNameSpace.CreateRecipient("Eric Lang")
Set hisCalendar = olNameSpace.GetSharedDefaultFolder _
    (myRecipient, olFolderCalendar)