Link to home
Start Free TrialLog in
Avatar of regbit
regbit

asked on

Sending the same reply to multiple messages in one message

BlueDevilFan wrote the script attached to answer the following question last month.  

"I have a user that is a member of a recruitment group, and they are wanting to send a standard reply to multiple emails that they have received, is there any way of doing this in outlook.  as when you select multiple messages the reply option is greyed out."

The script creates one reply for each message highlighted.  I am wondering if the script can be modified to create just one reply and put all the e-mail receipient addresses, from the selected messages, in the BCC field.

Thanks
Sub SendReply2AllNoTemplate()
    Dim olkMsg As Outlook.MailItem, _
        olkReply As Outlook.MailItem, _
        olkTemp As Outlook.MailItem, _
        strSubject As String, _
        strBody As String
    strSubject = InputBox("Enter the reply's subject", "Send Reply To All")
    strBody = InputBox("Enter the reply's body", "Send Reply To All")
    For Each olkMsg In Application.ActiveExplorer.Selection
        Set olkTemp = olkMsg.Reply
        Set olkReply = Application.CreateItem(olMailItem)
        olkReply.Recipients.Add olkTemp.Recipients.Item(1).Address
        olkReply.Recipients.ResolveAll
        olkReply.Subject = strSubject
        olkReply.Body = strBody
        olkReply.Display
        Set olkTemp = Nothing
    Next
    Set olkReply = Nothing
    Set olkMsg = Nothing
End Sub

Open in new window

Avatar of jeffrash
jeffrash
Flag of Germany image

I'd just make a rule that replies to the type of email in question and then at the end of the rule creation process click the check box that makes it run on the existing messages in the Inbox.
Avatar of regbit
regbit

ASKER

Thanks jeffrash however we are wanting to send a reply to selected people not every e-mail received.
Avatar of David Lee
Hi, regbit.
Yes, I can manage that.  Do you want to reply to just the senders of the original messages, or everyone those messages were addressed to?
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of regbit

ASKER

Thanks BlueDevilFan,

You were correct in assuming just the senders of the original messages.  The macro works great!

Thanks again
You're welcome.