|Outlook Developer Reference|
Version Added: Outlook 2007
expression A variable that represents an AddressList object.
A Folder object that represents the Outlook Contacts folder for the AddressList. Returns Null (Nothing in Visual Basic) if no Outlook contacts folder is found.
This method allows you to match an AddressList for the Contacts folder that you would like to set up as the initial address list in the Select Names dialog box.
The following code sample shows you how to initialize the Select Names dialog box with the AddressList for the default Contacts folder. It first obtains the Folder object for the default Contacts folder, and looks for its AddressList by comparing the Entry ID of this Folder object with the Entry ID of the Folder object assoicated with each AddressList in the current session until it finds a match. It then sets the InitialAddressList property and displays the Select Names dialog box.
|Visual Basic for Applications|