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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,216,100
Messages
6,128,825
Members
449,470
Latest member
Subhash Chand

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