Extracting all Outlook Address Book entries by specific department

cdchapman

Board Regular
Joined
Dec 30, 2010
Messages
112
Hello,

I'm hoping someone may be able to help me with a bit of code I need to write for an Excel dashboard I'm creating at work.

Basically, I need to interrogate the Outlook Global Address List and retrieve details for all people who belong to a certain area (the "department" field in the address book), and list these details in a worksheet.

I've searched through various forums, but the code I've found so far just brings back all entries in the GAL, which for a company, is quite large. I have tried manipulating the code to only retrieve details for a specific department but have not had any success - it either returns no data at all, or still returns every entry.

I am using Excel 2013/Outlook 2013, although I might need to ensure this also works on Excel 2010/Outlook 2010 (if there is any difference)?

Hopefully, someone will be able to help me out with this.

Chris
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top