Can you render the GAL in an Outlook form combobox?

  • Thread starter Thread starter David Beaven
  • Start date Start date
D

David Beaven

Outlook XP, Exchange 2000. Can I create a combobox in a custom form for a
task folder to *automatically* render all the entries in the GAL?
At the moment we manually populate it from time to time which is
inefficient.
Thanks
David
 
Sure. You need form code for that but just get the GAL as an
AddressList, get its AddressEntries collection then iterate each
AddressEntry object and add the information from that to the combo.
 
Hi David,

I think you can refer to the article to get the help about how to write the
code.

300121 How to Programmatically Create a GAL in Exchange 2000 Server
http://support.microsoft.com/?id=300121

We only indicate the client problem in this queue. The question only can be
solved by manually develop some codes. You also can create post in the
microsoft.public.exchange2000.development for help.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu [MSFT]

Microsoft Online Partner Support

MCSE 2000

Get Secure! - www.microsoft.com/security

This posting is provided "as is" with no warranties and confers no rights.
 
That code sample isn't really appropriate for Outlook form code. A
simple example would be as follows:

Function Item_Open()
Dim oAddressList
Dim colAddressEntries
Dim oAddressEntry
Dim oPage
Dim oControl

Set oAddressList = Application.Session.AddressLists("Global
Address List")
Set colAddressEntries = oAddressList.AddressEntries

Set oPage = Item.ModifiedFormPages("MyCustomFormPage")
Set oControl = oPage.Controls("MyCombo")

For Each oAddressEntry In colAddressEntries
oControl.AddItem oAddressEntry.Name
Next

'set all objects = Nothing here
End Function
 
Back
Top