AddressEntries Collection

Multiple objects
Multiple objects

The AddressEntries collection is a collection of addresses in an AddressList object. The object may contain zero or more AddressEntry objects and provides access to the entries in a transport provider's address book container.

Using the AddressEntries Object

The following example sets a reference to an AddressEntries object.

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myAddressList = myNameSpace.AddressLists("Personal Address Book")
Set myAddressEntries = myAddressList.AddressEntries

You can also index directly into the AddressEntries object, returning an AddressEntry object.

Set myAddressEntry = myAddressList.AddressEntries(index)


If a program tries to reference any type of recipient information by using the Outlook object model, a dialog box is displayed that asks you to confirm access to this information. You can allow access to the Address Book or recipient information for up to ten minutes after you receive the dialog box. This allows features, such as mobile device synchronization, to be completed.

You receive the confirmation dialog box when a solution tries to programmatically access the AddressEntries object.

Properties | Application Property | Class Property | Count Property | Parent Property | Session Property

Methods | Add Method | GetFirst Method | GetLast Method | GetNext Method | GetPrevious Method | Item Method | Sort Method

Parent Objects | AddressEntry Object | AddressList Object

Child Objects