We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Convert an HTML to an OFT

Updated April 17, 2017

There are many companies and Web-based services that allow you to create templates for HTML e-mails. After using one for some time, you may feel the desire to switch to Microsoft Outlook for your e-mail delivery needs. However, if you are happy with the template you have created, you may want to bring it into Outlook as an OFT file for use in later mailings. Fortunately, through the use of an Outlook VBA module, you can easily convert an HTML file to an Outlook template.

Loading ...
  1. Save your HTML e-mail template and all dependent files to your local drive.

  2. Start Microsoft Outlook and hit "ALT+F11" to bring up the Visual Basic editor. Select "Insert" and "Module" from the main navigational menu.

  3. Copy and paste the following code into your blank module:

  4. Sub MakeHTMLMsg()

  5. End Sub

  6. Substitute the complete local path to your HTML file for the parameter of "OpenTextFile."

  7. Close the Visual Basic editor and run the macro you just created by hitting "ALT+11" in the Outlook window to bring up the macro window. Select "MakeHTMLMsg" from the list of macros and click the "Run" button to bring up your HTML template in an Outlook message.

  8. Select "File" and "Save As" from the navigational menu of your HTML template in Outlook to save your message as an OFT file.

Loading ...

About the Author

Matthew Weeks has been a public policy and technology writer since 2003. He has been published on Men's News Daily and Free Republic. Weeks holds a bachelor's degree in political science from the College of New Jersey and a master's degree in public policy from Rutgers.

Loading ...