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

Save email to text file daily



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 31st 07, 11:12 PM posted to microsoft.public.outlook.program_vba
research_stuff
external usenet poster
 
Posts: 1
Default Save email to text file daily

I am currently receiving an email every day. I need to automatically
save the email to a text file every day. Is there a way to do this in
vba that can be placed in outlook?

Can anyone point me to resources to accomplish the above?


Thanks in Advance

  #2  
Old June 1st 07, 05:41 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Save email to text file daily


Here's a sample that saves every incoming email as a *.msg file into the
file system:
http://www.vboffice.net/sample.html?...7&cmd=showitem

In the Items_ItemAdd event you can check e.g. the item's subject and only
save specific mails. When calling SaveMailAsFile replace the olSaveAsMsg by
olSaveAsTxt to save the message as a txt file.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6


Am 31 May 2007 15:12:51 -0700 schrieb research_stuff:

I am currently receiving an email every day. I need to automatically
save the email to a text file every day. Is there a way to do this in
vba that can be placed in outlook?

Can anyone point me to resources to accomplish the above?


Thanks in Advance

 




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
Save all messages in a folder in a single text file Opinicus Outlook Express 9 May 5th 07 08:16 PM
Want to save all of my daily activities in another type of file lincanniff Outlook - Calandaring 1 November 16th 06 03:16 AM
Save email as text file macro Simon Outlook and VBA 7 August 10th 06 04:10 PM
Search email for text string to use in filename - save email text bsteiner Outlook and VBA 3 June 1st 06 10:20 PM
save as a text file [email protected] Outlook - General Queries 2 January 10th 06 08:52 PM


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