How to modify Contacts-Button behavior?

B

Bodo

Hi,

I've build a contact form for a public folder and want to use the contacts
Button (pick from field chooser...contacts) to let the user choose a
contact-item from the same folder.

What options do I have to modify the behaviour of the contacts button?
- I want that when the button is pressed my public contact folder is
selected as default.
- When the user chooses a contact from the list I want that the selected
item is stored in a userdefined control not in the control that is
automatically attached to the contacts button.
- When I drag the contacts button from the fields chooser, Outlook attaches
a control(_RecipientControl1) to the button automatically.
However, I'm unable to select a userdefined field for that control.

Appreciate any usefull hints.
 
S

Sue Mosher [MVP-Outlook]

There are no options to modify the behavior of that control or the field (Links) that it represents.
 
B

Bodo

Sue, thanks for your reply.
I want to add a button to my custom contact form.
How can I call the choose-contacts dialog by VBA in the buttons click event?

I then want to read the selected contact-item from the choose-contacts
dialog. How can I do this by VBA-code?


--
Thanks in advance.
Bodo


Sue Mosher said:
There are no options to modify the behavior of that control or the field (Links) that it represents.
 
S

Sue Mosher [MVP-Outlook]

Outlook provides no way to programmatically call that dialog, nothing analogous to the ShowCategoriesDialog command.

Other methods of allowing users to pick from that folder would be to use CDO 1.21, Redemption, or Outlook 2007 to call the Select Names dialog or fill a list or combo box on the form with names to pick.

Also note that the code behind Outlook forms is VBScript, not VBA.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

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