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 message format



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 5th 06, 10:48 AM posted to microsoft.public.outlook.program_vba
simonc
external usenet poster
 
Posts: 2
Default Changing message format

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




  #3  
Old May 5th 06, 01:03 PM posted to microsoft.public.outlook.program_vba
simonc
external usenet poster
 
Posts: 2
Default Changing message format

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  
Old May 5th 06, 01:15 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Changing message format

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


All times are GMT +1. The time now is 10:36 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.