Queriing the GAL 
Author Message
 Queriing the GAL

Folks,

I'm referencing the Outlook Object Model from Excel, and would like to
examine the GAL and add each of the Distribution Lists into an array of some
discription, to be later added into a drop down box.

Does anybody have any ideas how or if this can be done.

Thanks in advance,
Stef



Mon, 19 Jan 2004 15:58:07 GMT  
 Queriing the GAL
Use AddressLists("Global Address List") to get the GAL as an
AddressList. Then get the AddressEntries collection for that list.
Then check for the DisplayType property of each AddressEntry object.
For DL's in the GAL it would be olDistList (1)

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams


Quote:
> Folks,

> I'm referencing the Outlook Object Model from Excel, and would like
to
> examine the GAL and add each of the Distribution Lists into an array
of some
> discription, to be later added into a drop down box.

> Does anybody have any ideas how or if this can be done.

> Thanks in advance,
> Stef



Tue, 20 Jan 2004 02:55:07 GMT  
 Queriing the GAL
Ken,

Thanks for you help so far.... a few steps forward ;-)

In addition, I'm new to Outlook VBA, but have been using Excel VBA for some
time ... at the risk of sounding cheeky ...... is there any chance of an
example procedure, to see how this is done ??

Thanks again,
Stef



Quote:
> Use AddressLists("Global Address List") to get the GAL as an
> AddressList. Then get the AddressEntries collection for that list.
> Then check for the DisplayType property of each AddressEntry object.
> For DL's in the GAL it would be olDistList (1)

> --
> Ken Slovak
> [MVP - Outlook]
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
> Appendices, Sams



> > Folks,

> > I'm referencing the Outlook Object Model from Excel, and would like
> to
> > examine the GAL and add each of the Distribution Lists into an array
> of some
> > discription, to be later added into a drop down box.

> > Does anybody have any ideas how or if this can be done.

> > Thanks in advance,
> > Stef



Tue, 20 Jan 2004 16:20:05 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Call up Outlook GAL

2. Outlook GAL - Pick/Return email address

3. Me again - GAL lookup using CDO library.

4. How to eliminate dupes in GAL

5. Need to get some Properties of a User from GAL

6. Retrieve Information in GAL from a contact

7. Updating A GAL DIS list via code

8. GAL access without CDO

9. Accessing the GAL data in a Outlook Form

10. accessing GAL off line, and Session.Logon

11. Problems navigating GAL (lost pointer?)

12. Access GAL

 

 
Powered by phpBB® Forum Software