Manipulating the CC field in a custom form

D

Dorian Clinton

I have a New user request form that needs to be sent to
the applications group if a certain app is required. I
want to autopopulate the CC field w/a recipient if a
specific CheckBox control is checked (-1) on the form...
any help would be greatly appreciated. Thanks from the
forms newbie.
Dorian Clinton
(e-mail address removed)
 
D

Dorian Clinton

The answers to your questions are as follows:
1) There will be only one recipient (either a single
person or a distro list depending on the group's
preference)
2) Outlook 2003 SP1
3) The checkbox is bound to a user defined field
[HlthPro], but no initial values are set, and no
validation formulae are set.

Thanks for your help,
Dorian Clinton
(e-mail address removed)
 
S

Sue Mosher [MVP-Outlook]

Try this code in the Item_Send event handler:

Function Item_Send()
If Item.UserProperties("HlthPro") Then
Item.CC = "(e-mail address removed)"
End If
End Function

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Dorian Clinton said:
The answers to your questions are as follows:
1) There will be only one recipient (either a single
person or a distro list depending on the group's
preference)
2) Outlook 2003 SP1
3) The checkbox is bound to a user defined field
[HlthPro], but no initial values are set, and no
validation formulae are set.
 

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