Does anyone know how to retrieve data from the local address book in
Outlook/Exchange into Visual Basic?!?
I can do it from the global address book from an Exchangeserver using the
following code, but I don't know how to get the local address book.
Set objSession = CreateObject("MAPI.Session")
objSession.Logon ProfileNavn, ProfilePwd, False
set set hierarchy = objSession.AddressLists
set adrlist = hierarchy.item(1)
for adrcount = 1 to adrlist.addressentries.count
set adrbook = adrlist.addressentries(adrcount)
Name = adrbook.Name
ID = adrbook.ID
Set objSession = Nothing