Sue's vaction request form

  • Thread starter Thread starter dp
  • Start date Start date
D

dp

I'm trying to modify Sue's vacation request form to CC another user once the
manager has approved or disapproved the request. I've seen in another post
where Sue says to add an "Item_CustomAction event handler" but I'm not sure
what to put in there. This is what I have so far.



Function Item_CustomAction(ByVal Action, ByVal NewItem)



End Function



Any help would be greatly appreciated.
 
Action is the custom action from the (Actions) tab. NewItem is the new item
that action creates. If you want to add code, use a Select Case statement to
handle each action:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
Select Case Action.Name
Case "Approve"
' your approval code goes here
Case "Deny"
' your denial code goes here
End Select
End Function

The vacation request form already has examples of this.
 
Thank you for your reply Sue, I was able to get the CC to work. I just
added the CC field to the form and then edited it with the e-mail address
that I wanted. I'm assuming behind the GUI it did what you had suggested.
I do have another question but I'll create a new post.

Thanks again.
 
Note that, unless you're using a different form to handle the management
responses, the cc will go with the original request, as well as the
response.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Yeah the CC is just on the Approval form.


Sue Mosher said:
Note that, unless you're using a different form to handle the management
responses, the cc will go with the original request, as well as the
response.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top