A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Changing format from Rich Text to HTML



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 17th 07, 02:46 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Changing format from Rich Text to HTML

You can do this by using the Application.CreateItemFromTemplate method to
open each template and return a MailItem object (or whatever). Set the
message format by using MailItem.BodyFormat = olFormatRichText and call
MailItem.Save. Then you can retrieve a FormDescription object from
MailItem.FormDescription and call MailItem.SaveAs(Path, olTemplate) to update
the template's file.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"CJ" wrote:

Hello,

I have 290 oft's (MS Outlook 2003 email templates). Most of these are in
Rich Text format, I need to change all of them to use HTML format without
lossing the formats (Fonts & Colour etc). I know I can go into each one,
and make the change however is there a way I can do this change for all 290
templates in
one go, can I do this via VBA or something?

Regards

CJ

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML/Rich Text Messages: Always Re-Downloading Bodies--Why...? Chester Outlook - General Queries 0 March 27th 07 07:40 AM
problem with rich text (HTML)/plain text Jam Sr Outlook Express 2 July 8th 06 01:50 AM
Rich text - HTML Orcas2369 Outlook - Using Contacts 1 April 11th 06 06:56 PM
How do I read all my received mails in html- or rich text? New to MS outlook Outlook - General Queries 1 March 27th 06 11:43 AM
Message sent as Rich Text appear as HTML fali Outlook - General Queries 1 March 2nd 06 10:46 PM


All times are GMT +1. The time now is 09:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.