Class SelectNamesDialog (Outlook VBA)
Displays the Select Names dialog box for the user to select entries from one or more address lists, and returns the selected entries in the collection object specified by the property SelectNamesDialog.Recipients.
Class NameSpace gives access to class SelectNamesDialog.
Dim snd as SelectNamesDialog
Set snd = Session.GetSelectNamesDialog()
Methods
Display - Displays the Select Names dialog box.
SetDefaultDisplayMode - Sets the default display mode for the Select Names dialog box, specifying its caption and button labels.
Properties
AllowMultipleSelection returns or sets a Boolean that determines whether more than one address entry can be selected at a time in the Select Names dialog.
BccLabel returns or sets a String for the text that appears on the Bcc command button on the Select Names dialog box.
Caption returns or sets a String value that represents the title for the Select Names dialog box.
CcLabel returns or sets a String for the text that appears on the Cc command button on the Select Names dialog box.
Class returns a constant in the OlObjectClass enumeration indicating the class of the SelectNamesDialog object.
ForceResolution returns or sets a Boolean that determines if Outlook must resolve all recipients in the object specified by SelectNamesDialog.Recipients before the user can click OK to accept the typed or selected recipients in the Select Names dialog box.
InitialAddressList returns or sets an AddressList object that determines the initial address list to be displayed in the Select Names dialog box.
NumberOfRecipientSelectors returns or sets a OlRecipientSelectors constant that determines the number of recipient edit boxes (each associated with a command button) displayed in the Select Names dialog box.
Recipients returns a Recipients collection object that represents the recipients selected in the Select Names dialog, or sets a Recipients collection object that represents the initial recipients to be displayed in the Select Names dialog box.
Session returns the NameSpace object for the current session.
ShowOnlyInitialAddressList returns or sets a Boolean that determines if the AddressList represented by SelectNamesDialog.InitialAddressList is the only AddressList available in the drop-down list for Address Book in the Select Names dialog box.
ToLabel returns or sets a String for the text that appears on the To command button on the Select Names dialog box.
Related Classes
AddressList - Represents an address book that contains a set of AddressEntry objects.
NameSpace - Represents an abstract root object for any data source.
Recipients - Contains a collection of Recipient objects for an Outlook item.