How to reply in HTML format automatically in Outlook?
In Microsoft Outlook, we can configure settings and compose all new messages in HTML format, but can’t reply messages in HTMT format automatically, because it always reply in the initial format of received messages. This article will introduce you tricks about replying in HTML format automatically in Outlook.
It is easy to convert the formats of Plain Text or Rich text to the HTML format when you are replying an email message in Outlook.
Step 1: Select the email message that you will reply later.
Step 2: Click the Reply button on the Home tab (or on the Toolbar in Outlook 2007) to reply the selected email message.
Step 3: Click the HTML on the Format Text tab (or Options tab in Outlook 2007).
Then the replying message is converted to the HTML format immediately.
Step 4: Compose this replying message, and click the Send button.
The following method will help you reply all email messages in the HTML format automatically in Microsoft Outlook.
Step 1: Select the email message that you will reply in the HTML format.
Step 2: Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.
Step 3: Click the Insert > Module.
Step 4: Paste the following code into the new module window.
Sub AlwaysReplyInHTML() Dim oSelection As Outlook.Selection Dim oItem As Object 'Get the selected item Select Case TypeName(Application.ActiveWindow) Case "Explorer" Set oSelection = Application.ActiveExplorer.Selection If oSelection.Count > 0 Then Set oItem = oSelection.Item(1) Else MsgBox "Please select an item first!", vbCritical, "Reply in HTML" Exit Sub End If Case "Inspector" Set oItem = Application.ActiveInspector.CurrentItem Case Else MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", _ vbCritical, "Reply in HTML" Exit Sub End Select Dim oMsg As Outlook.MailItem Dim oMsgReply As Outlook.MailItem Dim bPlainText As Boolean 'Change the message format and reply If oItem.Class = olMail Then Set oMsg = oItem If oMsg.BodyFormat = olFormatPlain Then bPlainText = True End If oMsg.BodyFormat = olFormatHTML Set oMsgReply = oMsg.Reply If bIsPlainText = True Then oMsg.BodyFormat = olFormatPlain End If oMsg.Close (olSave) oMsgReply.Display 'Selected item isn't a mail item Else MsgBox "No message item selected. Please select a message first.", _ vbCritical, "Reply in HTML" Exit Sub End If 'Cleanup Set oMsgReply = Nothing Set oMsg = Nothing Set oItem = Nothing Set oSelection = Nothing End Sub
Step 5: Press the F5 key to run this macro.
Then it opens the replying window, and the replying message is in the HTML format.
Step 6: Compose the replying message, and click the Send button.
Here I recommend you a handy utility – Fixed Reply Formatting of Kutools for Outlook. With this utility, you can easily specify a reply formatting such as HTML, plain text and RTF, and fix the specified formatting as the reply format for all future reply emails.
1. Click Kutools > Fixed Reply Formatting > Set Reply Formatting. See screenshot:
2. In the Set Reply Formatting dialog box, select HTML or other reply formatting as you need, and click the OK button. Then click the OK button in the next popping up success dialog box.
3. Now you just need to click Fixed Reply Formatting > Enable Fixed Reply Formatting to make the utility take effect. See screenshot:
If you want to have a free trial of this utility, please go to free download the software first, and then go to apply the operation according above steps.
- Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
- BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
- Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
- Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
- Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoRunning the macro works for one instance, but how to replicate it to occur on every instance?
- To post as a guest, your comment is unpublished.· 2 years agoI followed all of the steps listed about but when I press F5 to run the Module I get an error message saying that the Macros for this project have been disabled. I even tried going into Outlooks settings and telling Outlook to enable all Macros. Any help would be greatly appreciated!
- To post as a guest, your comment is unpublished.· 2 years agoThanks a lot for this macro!
- To post as a guest, your comment is unpublished.· 2 years agothis only changes the email i have selected. how do you change it for all emails?
- To post as a guest, your comment is unpublished.· 2 years agoSame thing for me. Did you get any help?
- To post as a guest, your comment is unpublished.· 2 years agoPlease, do you know the appropriate 'Alt F11' and 'F5' keys when using Outlook 2016 on a Mac?
This sure is an annoying omission by Microsoft. Many thanks. Hope you can help.
- To post as a guest, your comment is unpublished.· 2 years agoThanks, it worked. You are da man!
- To post as a guest, your comment is unpublished.· 2 years agoThank you for this, but i am having issues.
I copy/pasted and the number were put above the text when i pasted it and I got the error message - "compile error: invalid outside procedure"
Then i tried to just erase the numbers and leave the test and got : Run time Error - could not send message. - I then clicked Debug and got the same error as others: Set oMsgReply = oMsg.Reply
- To post as a guest, your comment is unpublished.· 2 years agoDont open the email, only highlight it in outlook.
insert the module
New email should open as HTML to reply
- To post as a guest, your comment is unpublished.· 3 years agoGreat Job.
but in fact i have a small error that might be conflicting the running option:
Set oMsgReply = oMsg.Reply
can you tell me if you experience such an error related to above code line.
- To post as a guest, your comment is unpublished.· 3 years agogreat work
but it is giving me an error:
Set oMsgReply = oMsg.Reply
couldn't sed msg
- To post as a guest, your comment is unpublished.· 3 years agoThis seems to work on the sender I received the txt email from, but not for other senders. Do I have to rerun this for each sender?
FYI, Outlook 365 for an Exchange mail account on machine running Windows 7.
- To post as a guest, your comment is unpublished.· 3 years agoI have been using and loving this for a month (thank you!), but today it broke. Other searching online tells me it might have been an Outlook update that broke it -- any ideas?
- To post as a guest, your comment is unpublished.· 4 years agoSuperb, hero!
It really works, save time and energy.
- To post as a guest, your comment is unpublished.· 4 years agoYou are a genius buddy!!! Thank you...
I have got another question.. Do you know how to remove the paragraph markers when they automatically appear when composing a reply in outlook.
- To post as a guest, your comment is unpublished.· 5 years agoYOU ARE A WIZARD!!! :lol:
The VBA script works perfectly, no longer do I have to delete my signature, convert manually to HTML and then re-insert my signature on EVERY message I send!