Manipulating the CC field in a custom form

  • Thread starter Thread starter Dorian Clinton
  • Start date Start date
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)
 
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)
 
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.
 
Back
Top