![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
What is CDO1.21? Sorry for ignorance
"Sue Mosher [MVP-Outlook]" wrote: 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. |
#4
|
|||
|
|||
![]()
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 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 ... What is CDO1.21? Sorry for ignorance "Sue Mosher [MVP-Outlook]" wrote: 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. "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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing the format of received e-mail in OE 6 from HTML to Plaint | David Langschied | Outlook - Installation | 1 | March 22nd 06 09:12 PM |
Changing the format of received e-mail in OE 6 from HTML to Plaint | David Langschied | Outlook - Installation | 0 | March 22nd 06 08:00 PM |
Changing date format in outlook express | ibowey | Outlook Express | 2 | March 13th 06 12:33 PM |
changing the message icon? | Sydney | Outlook and VBA | 1 | January 25th 06 04:14 PM |
Shortcut to change message format | Postman | Outlook - General Queries | 3 | January 17th 06 08:56 PM |