How can I load a HTML template into the WordEditor?

Status
Not open for further replies.

AlanBru

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi there,

When making a reply to a message, I want to insert the contents of a template, which is in HTML format, before the original text. Can you suggest a way to to that please?

I'm thinking of loading the HTML file into a wdDoc in Outlook, then pasting it to the start of the active inspector's wdDoc, but I can't find the method to load the file.

I look at the free chapter 17 from Sue's Progamming Outlook book but it doesn't have all I need.

Thanks in advance,

- Alan.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange

AlanBru

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Thanks. That seems too simple to be true... Will that really concatenate the HTML correctly? I thought that I'd have to parse the headers etc, that's why I was trying to go via a Word document object.

I'm putting this in a COM add-in so several users can share the templates. So QuickParts aren't an option.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Yes, it should. Obviously, the best way to know is to test with it the template you plan to use. I mostly only tested it with backgrounds for replies. I use a version for new messages to insert the newest html in a folder into a new message- that works great, but it's a new message so no reply text to get in the way.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J VB6 Add-in fails to load in Outlook 16 - message useless Outlook VBA and Custom Forms 4
Diane Poremsky Always Load an Outlook Addin New Slipstick.com Articles 1
William getting custom form to load category colors Outlook VBA and Custom Forms 4
J BCM 2013 in Outlook 2013 will not load BCM (Business Contact Manager) 5
H Macro to load an Outlook Template Using Outlook 2
M Load a template when you reply Using Outlook 1
A Not able to load an add-in for outlook 2007 developed in VSTO 2005 Outlook VBA and Custom Forms 2
S COM Addin Failed to load in Outlook 2003 Outlook VBA and Custom Forms 1
S Outlook 2007 Add-in strange load behavior Outlook VBA and Custom Forms 10
G "Cannot load GUI library into memory" Outlook VBA and Custom Forms 3
D Why does BCM not always load when I restart Outlook? BCM (Business Contact Manager) 1
G Using VBA to load the CC line on an Outlook email Outlook VBA and Custom Forms 2
S BCM does not load in Windows 7 BCM (Business Contact Manager) 1
P Can you load an OlkComboBox and show a previously selected value? Outlook VBA and Custom Forms 1
W My VSTO 3.0 Outlook addin doesn’t load Outlook VBA and Custom Forms 1
P What is it, and why won't it load? BCM (Business Contact Manager) 10
M VBA Form how to load in Outlook 2003 Outlook VBA and Custom Forms 4
S Business Data Import and Export Load Error Cannot Map BCM (Business Contact Manager) 1
D Outlook AddIn can't load outside Visual Studio Outlook VBA and Custom Forms 1
D Application.ActiveInspector() is Null on Ribbon Load Outlook VBA and Custom Forms 1
Q Load a recipient based on a value in a combo box Outlook VBA and Custom Forms 7
S Business contact manager will not load? databinding? BCM (Business Contact Manager) 2
J add-in won't load Outlook VBA and Custom Forms 12
N Load audio file into Media Player control Outlook VBA and Custom Forms 2
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Programmatically force html send and insert clipboard contents into body Outlook VBA and Custom Forms 0
S Change VBA script to send HTML email instead of text Outlook VBA and Custom Forms 3
U HTML Task Alternate Home Page View Control Using Outlook 3
D Custom form with html hyperlink Outlook VBA and Custom Forms 7
D Keep Original html body when forwarding an email Outlook VBA and Custom Forms 7
S Emails Configured As HTML But Sent As Plain Text Using Outlook 13
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
George Simpson "Switch to HTML" in Outlook 2016 notes field Using Outlook 1
H Search and delete part of a link inside HTML body message Outlook VBA and Custom Forms 2
S Outlook 2013 doesn't download html messages Using Outlook 0
cabinet guy permanent response in html Using Outlook 1
C Signatures in HTML emails Using Outlook 5
I Outlook 2013 Appointments not in HTML Using Outlook.com accounts in Outlook 2
B Replies never HTML Using Outlook 2
L Outlook 2002: HTML Emails Will Not Print: Please Help Using Outlook 0
Diane Poremsky Outlook crashes when viewing HTML Messages New Slipstick.com Articles 0
Diane Poremsky Create a New Message using an HTML File or Stationery New Slipstick.com Articles 0
V incorrect html signature printed Using Outlook 2
Z alter the timeout for how long outlook looks for a content-server on an HTML-email? Using Outlook 5
Diane Poremsky Create a New Message using an HTML File or Stationery New Slipstick.com Articles 0
Y HTML Emails Using Outlook 1
A Lync meeting in outlook lose HTML formatting Using Outlook 3
C Outllok 2010 (14.0.7015.1000 (32bit) converts html mail to rich text when move Using Outlook 1
T HTML email for internal mesages and Text only for External? Using Outlook 1
C In need of VBA code to read / parse HTML - Outlook emails Using Outlook 0

Similar threads

Top