Set
objRecipients = objSession.AddressBook( [recipients] [, title] [, oneAddress] [, forceResolution] [, recipLists] [, toLabel] [, ccLabel] [, bccLabel] [, parentWindow ] )
objRecipients
On successful return, the Recipients collection object. When the user does not select any names from the dialog box, AddressBook returns Nothing.
objSession
Required. The Session object.
recipients
Optional. Object. A Recipients collection object that provides initial values for the recipient list boxes in the address book dialog box. During the dialog, the user can select recipients from this collection and add other recipients.
title
Optional. String. The title or caption of the address book dialog box. The default value is an empty string.
oneAddress
Optional. Boolean. Allows the user to enter or select only one address entry at a time. The default value is False.
forceResolution
Optional. Boolean. If True, attempts to resolve all names before closing the address book. Prompts the user to resolve any ambiguous names. The default value is True.
recipLists
Optional. Long. The number of recipient list boxes to display in the address book dialog box:
|
recipLists
setting
|
Action
|
|
1
|
Displays three list boxes with default captions and without resolution, that is, acts as a shortcut for forceResolution=False, recipLists=3 with no setting of toLabel, ccLabel, or bccLabel.
|
|
0
|
Displays no list boxes. The user can interact with the address book dialog box but no recipients are returned by this method.
|
|
1
|
Displays one list box for CdoTo recipients (default).
|
|
2
|
Displays two list boxes for CdoTo and CdoCc recipients.
|
|
3
|
Displays three list boxes for CdoTo, CdoCc, and CdoBcc recipients.
|
toLabel
Optional. String. The caption for the button associated with the first recipient list box. Ignored if recipLists is less than 1. If omitted, the default value To: is displayed.
ccLabel
Optional. String. The caption for the button associated with the second recipient list box. Ignored if recipLists is less than 2. If omitted, the default value Cc: is displayed.
bccLabel
Optional. String. The caption for the button associated with the third recipient list box. Ignored if recipLists is less than 3. If omitted, the default value Bcc: is displayed.
parentWindow
Optional. Long. The parent window handle for the address book dialog box. A value of zero (the default) specifies that the dialog box should be application-modal.