Outlook Address Book

J

JP

Sure, how about

Dim olApp As Object ' Outlook.Application
Dim olNS As Object ' Outlook.NameSpace
Dim olAL As Object ' Outlook.AddressList
Dim olEntry As Object ' Outlook.AddressEntry

Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
Set olAL = olNS.AddressLists("Personal Address Book")
For Each olEntry In olAL.AddressEntries
' your looping code here
Next olEntry

Just replace "Personal Address Book" with the name of the address book
you want. (Go to Tools > Address Book and look in the "Show Names"
dropdown).

For sample looping code, see http://www.codeforexcelandoutlook.com/blog/2009/03/extract-gal-members-to-excel/

--JP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top