AddressEntries Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.


Aa613122.parchild(en-us,office.10).gifAddressEntries
Aa613122.space(en-us,office.10).gifAa613122.parchild(en-us,office.10).gif

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)