D
Doug Lowe
Hi all, I'm working on a Word template macro that will list all of the
contacts from a public contacts folder in a combo-box. I have the code
working, but it takes about 15 seconds to load 1,400 contacts. After getting
the oContacts MAPI folder set to the correct public folder, here's the code
that actually loads the combo box:
For Each oContact In oContacts.Items
Dim sName As String
sName = oContact.LastNameAndFirstName & " ( " & oContact.CompanyName &
")"
Me.cboContacts.AddItem sName
Next
Is there a more efficient way to get these contacts? I'm considering caching
the contacts in a text file or something on each client's computer.
TIA,
--Doug
contacts from a public contacts folder in a combo-box. I have the code
working, but it takes about 15 seconds to load 1,400 contacts. After getting
the oContacts MAPI folder set to the correct public folder, here's the code
that actually loads the combo box:
For Each oContact In oContacts.Items
Dim sName As String
sName = oContact.LastNameAndFirstName & " ( " & oContact.CompanyName &
")"
Me.cboContacts.AddItem sName
Next
Is there a more efficient way to get these contacts? I'm considering caching
the contacts in a text file or something on each client's computer.
TIA,
--Doug