Use voting buttons to reply all

mrfitness

New Member
Joined
Apr 25, 2007
Messages
22
I have created a macro which sends an email out with voting buttons Approve and Reject.
Problem is, when the receiver of the email hits Approve, it only gets send to the sender of the origin email (user of the program). I wanted it set up so that when the receiver hits Approve,it gets sent to the user of the program as well as me. I tried putting both names in the TO field but the response only gets sent to the user of my application that sent the email out. Is there any way to get around this?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try placing this within a module within Outlook

Code:
Sub test()

Dim objMail As MailItem


Set objMail = Application.CreateItem(olMailItem)


    With objMail
        .To = "abc@test.com"
        .VotingOptions = "Yes;No"
        .ReplyRecipients.Add "youremail@test.com"
        .ReplyRecipients.Add "someotheremail@test.com"
        .Subject = "Some vote"
        .Body = "Please Vote"
        .Display 'or .Send 
    End With


End Sub

The VotingOptions string represents your possible voting options and then you can add as many recipients to receive the reply as you wish either one by one or in a loop.

Hope this helps

Simon
 
Upvote 0
Hi,

is there a way to add the sender as well as other groups?

for eg.. if I reply all then it should go to the sender and others who I chose to send it to.

Regards
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top