View Single Post
  #2  
Old May 5th 06, 12:37 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Changing message format

Setting the Body property in Outlook 2000 always forces the item to rich text. You might want to use HTMLBody instead. You won't be able to maintain the plain text format with Outlook objects; you'd have to use CDO 1.21.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"simonc" wrote in message ...
I have written a macro to delete attachments from e-mails and add the file
names of the deleted attachments to the end of the message text. Every time I
run this the format of the message is changed to rich text, regardless of
what the format was originally. (The help files on EditorType at least
explain that this will happen.)

Is there a way of doing this while leaving the format of the message
unchanged? ie if the message was in plain text format I want the edited
message still to be in plain text format. It's easy to find the original
format type, using GetInspector.EditorType, but I can't find a way of
resetting the EditorType after making the changes to the message Body. (I am
still using Outlook 2000, which may be a limitation.)

Grateful for any ideas.




Ads