Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / December 2003

Tip: Looking for answers? Try searching our database.

Forwarding a response to a voting box back to original recipient plus another person

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shaz_rutherford - 19 Dec 2003 16:58 GMT
I am using a holiday request form which I downloaded from a website

The person fills in holiday information and sends to his/her manager t
accept.

The manager accepts/declines the holiday request and the form i
bounced back to the originator to let him/her know of the result.

I am wanting to be able to send the response to another perso
(preferrably only 1 person) who is not the originator.

Is there anyway of doing this, either using vbscript. If so any hel
would be appreciated.

Thank
Sue Mosher [MVP] - 20 Dec 2003 17:43 GMT
Presumably the form has script that runs when the Accept or Decline button is clicked. That script would be in the Item_CustomAction event handler; that's where your code would need to set the address for the outgoing response item.
Signature

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
    http://www.outlookcode.com/jumpstart.aspx 

> I am using a holiday request form which I downloaded from a website
>
[quoted text clipped - 13 lines]
>
> ------------------------------------------------
shaz_rutherford - 21 Dec 2003 16:11 GMT
This is what is in the code window. I have got the cc: field to work but it sends the request to the cc: not the response from the sent to: field.

Function Item_CustomAction(ByVal Action, ByVal NewItem)

select case Action.Name
    case "Approve"
    item.userproperties.find("Approved") = true
    Actions.Item("Approve").Enabled = False
    Actions.Item("Deny").Enabled = False
    NewItem.Body = "Your request from " & (item.userproperties.find("Days Off From")) & " to " & (item.userproperties.find("Days Off To")) & "for " & (item.userproperties.find("Totaldays"))& " days leave has been approved."
    case "Deny"
    item.userproperties.find("Denied") = true
    Actions.Item("Approve").Enabled = False
    Actions.Item("Deny").Enabled = False
    NewItem.Body = "Your request from " & (item.userproperties.find("Days Off From")) & " to " & (item.userproperties.find("Days Off To")) & "for " & (item.userproperties.find("Totaldays"))& " days leave has been denied."
    end select

    item.close(0)

    Item_CustomAction = true

End Function
Sue Mosher [MVP] - 22 Dec 2003 22:46 GMT
Did you have the actions set up to "address like reply"?

> This is what is in the code window. I have got the cc: field to work but it sends the request to the cc: not the response from the sent to: field.
>
[quoted text clipped - 18 lines]
>
> End Function
shaz_rutherford - 23 Dec 2003 08:52 GMT
It is set to reply.

The forward isn't enabled though, could this be it
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.