Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2006

Tip: Looking for answers? Try searching our database.

send new unopened mail to file outside outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phyllis - 31 May 2006 18:05 GMT
Is there a way to configure Outlook to automatically move unopened, new mail
directly to a folder outside outlook. I do not want to use any additional
software. I was wondering if a macro could accomplish this.
Eric Legault [MVP - Outlook] - 31 May 2006 22:22 GMT
Sure it's possible.  You can write all the item delivery trapping code
yourself:

How to create a custom rule using Visual Basic for Applications (VBA) in
Outlook 2002:
http://support.microsoft.com/default.aspx?scid=kb;en-us;292063

Or have some of that plumbing done for you by doing it this way:

How to create a script for the Rules Wizard in Outlook:
http://support.microsoft.com/default.aspx?scid=KB;en-us;q306108

Then all you really have to do is call the MailItem.SaveAs method, like this
for example:

objItem.SaveAs "C:\MyFolder\Myfilename.txt", olTXT

Signature

Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/

> Is there a way to configure Outlook to automatically move unopened, new mail
> directly to a folder outside outlook. I do not want to use any additional
> software. I was wondering if a macro could accomplish this.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.