Discussion Locked

VB & Outlook / Exchange GAL

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have VB 6.0 & I would like to read the the name or other field of all the member of a distribution list from Outlook / Exchange Gobal Address List.

Can anyone help.

Thanks

3 replies

by sunsesh

From the Outlook help:

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)

by rakeshkanojia

Thanks for replying but What I need is to read the required fields of all the Member in a Distribution List/ Group.

Thanks once again

This discussion is closed to new replies.