View Single Post
  #4  
Old January 17th 06, 08:59 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default string variable that contains formatting

You can use CDO with a special .dll to read and write RTF with a little
difficulty. An easier option is to use Word as your e-mail editor and use
the Word Object Model to set and read rich text formatting:

How to create formatted messages in Microsoft Outlook:
http://www.outlookcode.com/d/formatmsg.htm#wordmail

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Martin" wrote:

Using RTF as editor, can I assign the typed and formatted text of the body of
a message to a variable that remembers the formatting? I want to be able to
automatically truncate a signature and replace it with a different one - fine
with the usual string functions but all of them strip out any formatting the
user has included.

Ads