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

Macro or Code to save email as RTF files



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 28th 09, 10:07 PM posted to microsoft.public.outlook.program_vba
Brent E
external usenet poster
 
Posts: 1
Default Macro or Code to save email as RTF files

Good day,

I have numerous emails stored in a subfolder of my personal folder in
Outlook. The files are currently in an Outlook msg format. I want to
convert
them to RTF and store them.

I am curious if anybody knows of a macro or VBA that will save all emails
in
the folder as RTF and save them to a widows folder for example:
C:\Outlook\Messages

Please advise.

Thanks in advance,
Cordially,

Ads
  #2  
Old February 4th 09, 12:27 PM posted to microsoft.public.outlook.program_vba
Alan Moseley
external usenet poster
 
Posts: 61
Default Macro or Code to save email as RTF files

I don't think that you can save an email as RTF through the object model.
You can save it as an msg file though. Would this suffice? If so I can
probably figure some code out for you. How would you want the file named?

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Brent E" wrote:

Good day,

I have numerous emails stored in a subfolder of my personal folder in
Outlook. The files are currently in an Outlook msg format. I want to
convert
them to RTF and store them.

I am curious if anybody knows of a macro or VBA that will save all emails
in
the folder as RTF and save them to a widows folder for example:
C:\Outlook\Messages

Please advise.

Thanks in advance,
Cordially,

  #3  
Old February 4th 09, 02:10 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Macro or Code to save email as RTF files

Sure you can save an email as RTF, assuming it is an RTF message. To convert
it to RTF you would use item.BodyFormat = olFormatRichText (item would be
the mail item), then call Save on it, then call SaveAs using olRTF as the
argument for the Type parameter.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Alan Moseley" wrote in message
...
I don't think that you can save an email as RTF through the object model.
You can save it as an msg file though. Would this suffice? If so I can
probably figure some code out for you. How would you want the file named?

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Brent E" wrote:

Good day,

I have numerous emails stored in a subfolder of my personal folder in
Outlook. The files are currently in an Outlook msg format. I want to
convert
them to RTF and store them.

I am curious if anybody knows of a macro or VBA that will save all
emails
in
the folder as RTF and save them to a widows folder for example:
C:\Outlook\Messages

Please advise.

Thanks in advance,
Cordially,


 




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
Newbie- is this possible? (code to save attachments from server to network drive, without opening email locally) ker_01 Outlook and VBA 3 October 3rd 08 02:33 PM
Voting button macro code kd Outlook and VBA 3 April 24th 08 02:35 PM
Macro/VBA code to change SMTP server Swash Outlook - Using Forms 0 July 11th 07 01:26 PM
Intermittant NumLock changes in my Excel 2007 VBA macro code TomThumb Outlook and VBA 2 June 8th 07 12:57 PM
Save email as text file macro Simon Outlook and VBA 7 August 10th 06 04:10 PM


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