Changing message format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
What is CDO1.21? Sorry for ignorance

Sue Mosher said:
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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
It's another API included with Outlook as an optional component. See http://www.outlookcode.com/d/cdo.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top