Adding names from Exchange Global Address List?

T

Tyler Theobald

I have a custom task form with a field that has user
names' just listed as "possible values" on the control.
I'd like to be able to pull these from the Global Address
List instead of statically putting them in the form. That
way, I don't have to update the form with user names
occasionally.
I have Sue's Microsoft Outlook Programming book, but am
still confused on how to do this.
I'd like the field to act just like the TO or CC line on
an email.
HELP! Thanks so much!
 
S

Sue Mosher [MVP]

Is there a reason why you don't want to use the address book itself? It's going to perform much better than any code you might write to loop through the GAL and build a combo box list.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
T

Tyler Theobald

Thanks for the reply Sue,
In the end, I need this ability for 4 seperate fields on
the same form. This is a task form and won't be mailed, I
just need the selected name to stay in the field after
it's selected. What's the best way to do this?
Thanks again.

Tyler
-----Original Message-----
Is there a reason why you don't want to use the address
book itself? It's going to perform much better than any
code you might write to loop through the GAL and build a
combo box list.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers



"Tyler Theobald" <[email protected]>
wrote in message [email protected]...
 
S

Sue Mosher [MVP]

It somewhat depends on what you're trying to do. If it's just get a name, I'd probably use code to show the Select Names dialog and let people pick the four names, then write their selection to an Outlook property displayed in a read-only text box control.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
T

Tyler Theobald

Thanks Sue - OK, so this makes sense to me and I see in
your book where you have this layed out. But question:
Is there no way to have one or more fields on a task form
to act just like the To field on an email? Where the user
can type a name right into the field control and resolve
it from the address book from there without have to go to
the select names dialog?

Tyler
-----Original Message-----
It somewhat depends on what you're trying to do. If it's
just get a name, I'd probably use code to show the Select
Names dialog and let people pick the four names, then
write their selection to an Outlook property displayed in
a read-only text box control.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers



"Tyler Theobald" <[email protected]> wrote in
message news:[email protected]...
 
S

Sue Mosher [MVP]

Yes, you can use the same To, Cc, Bcc controls as on a message, although this might confuse people into thinking that it's a task request. You would also have to read the information out of the Recipients collection into your read-only text box.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top