AddressEntries Collection Object

AddressEntries Collection Object

         Example         Properties         Methods        

AddressLists collection (AddressList object)
AddressEntries collection (AddressEntry object)

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

Using the AddressEntries Collection 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 collection, returning an AddressEntry object.

Set myAddressEntry = myAddressList.AddressEntries(index)