Link to home
Start Free TrialLog in
Avatar of davereynolds
davereynolds

asked on

Accessing Exchange address books

We have multiple address books set up on Exchange. How do I access these through code?
Avatar of Neo_mvps
Neo_mvps

Not sure which object model or language you want to use, but from Outlook 2K & VBA.

Dim objApp as Outlook.Application
Dim objNS as Outlook.NameSpace
Dim objAdrLst as Outlook.AddressList

Set objApp = CreateObject("Outlook.Application")
set objNS = objApp.GetNameSpace("MAPI")
objNS.Logon "","", False, False

Set objAdrLst = objNS.AddressLists("Personal Address Book")
Avatar of davereynolds

ASKER

Using Office 97. "Outlook.AddressList" is unknown.
ASKER CERTIFIED SOLUTION
Avatar of Neo_mvps
Neo_mvps

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Neo_mvps. Good research job.