I'm trying to create a script to open the Reply All window automatically when a specific email is received.
Also for it to include specific text in the body, I don't want the email to be send just want the window to open.
I have tried the following:
Option Explicit
Sub ReplyMSG()
Dim olItem As Outlook.MailItem
Dim olReply As MailItem ' Reply
For Each olItem In Application.ActiveExplorer.Selection
Set olReply = olItem.ReplyAll
olReply.HTMLBody = "TEXT " & vbCrLf & olReply.HTMLBody
olReply.Display
'olReply.Send
Next olItem
End Sub
This will Open the email that is selected in the inbox rather than the email that was just received.
How can I change this to Reply All on the specific email?