> I've done this by using placeholders in the HTML where the data from the InputBox result should go. For example, put %Field1% where you want one bit of data to appear, then use something like:
>
[quoted text clipped - 11 lines]
> > hyplerlink. Does anyone know wuick way to achieve this, I am just spinning
> > my wheels...
In both cases, you need a string variable to contain the fully tagged HTML content.
.oft file -- load it with Application.CreateItemFromTemplate,then get its HTMLBody property
.txt file -- read the text into a variable with FileSystemObject methods; see http://msdn.microsoft.com/library/en-us/script56/html/jsfsotutor.asp
>I am assuming like this:
>
> Set itm = Application.CreateItemFromTemplate("C:\myfile.oft")
> itm.HTMLBody = Replace(itm.HTMLBody, "%name%", "customer_name")
Exactly.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> Sue, Thanks for you quick response! Using this method how would I get VBA
> to do a find through either the .oft file or through an HTM/HTML file to find
[quoted text clipped - 8 lines]
>> htmlText = Replace(htmlText, "%Field1%", "New Text")
>> myMessage.HTMLBody = htmlText
>> > All,
>> >
[quoted text clipped - 6 lines]
>> > hyplerlink. Does anyone know wuick way to achieve this, I am just spinning
>> > my wheels...
Nathan - 29 Jan 2008 16:25 GMT
Sue,
Thanks again for you help, that worked as intended, only one last snag, that
I don't think I can get around.....I am dynamically trying to change a
tracking order link using a place holder in the HTML tag itself, can this be
done easily using teh same described method?
> In both cases, you need a string variable to contain the fully tagged HTML content.
>
[quoted text clipped - 32 lines]
> >> > hyplerlink. Does anyone know wuick way to achieve this, I am just spinning
> >> > my wheels...
Sue Mosher [MVP-Outlook] - 29 Jan 2008 16:50 GMT
I don't see why not. It's all just text.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> Sue,
>
[quoted text clipped - 39 lines]
>> >> > hyplerlink. Does anyone know wuick way to achieve this, I am just spinning
>> >> > my wheels...