Home > Microsoft Exchange Tips > Outlook and Outlook Web Access Tips > Automatically save Microsoft Outlook email attachments to disk
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

OUTLOOK AND OUTLOOK WEB ACCESS TIPS

Automatically save Microsoft Outlook email attachments to disk


Serdar Yegulalp
09.26.2007
Rating: --- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Discover an easy-to-use and customizable Outlook VBA script that will drop email attachments into a specified Microsoft Outlook folder that then automatically saves them to a directory folder on disk.

I have a terrible habit of letting Microsoft Outlook .PST files bloat up with email attachments, because I never bother to dump the email that contains them (even if I no longer really need them). Manually removing attachments from messages can be laborious.

I've since discovered an Outlook VBA script that automatically saves email attachments and gives me an excuse to continue dumping attachments into my Outlook .PST files.

The macro script, authored by Killian, allows attachments to be automatically saved to a directory folder somewhere on disk whenever a message with an email attachment is moved into a specific "watched" Microsoft Outlook folder. These folders can be named anything you want, as the names are spelled out in the script itself and can be modified with relatively little work.

The Outlook VBA script can also be customized:

  • I modified the retention settings for the folder where the attachment-bearing messages are dropped so that they are automatically deleted after a few months. (In my experience, that's long after any use for the attachment has disappeared.)
  • I also commented out the part of the code that prints Excel attachments, since I didn't need that feature.

The VBA script works in Outlook 2002 and 2003, and I have also tested it in Outlook 2007. Regardless of version, however, you'll need...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Microsoft Outlook
Outlook 2007 shut-down problems and fixes
Microsoft Outlook and SharePoint calendar dos and don'ts
Free tools facilitate large-scale Outlook and SharePoint integrations
Exchange Mailbag: POP3 settings and Outlook issues
Pros and cons of Outlook 2007's storage engine redesign
Fix Outlook 2007 and SharePoint synchronization breaks
Email issues after configuring hosted Exchange server on laptop
Avoid Outlook 2007 performance issues during repairs
A behind-the-scenes look at Outlook 2007 and SharePoint integration
When to use a self-signed certificate with Exchange Server 2007
Microsoft Outlook Research

Microsoft Exchange Server Scripts and Programming
Removing old disclaimers from Exchange Server 2003
How to run Exchange Management Shell cmdlets in Exchange Server 2007
Automate complex Exchange 2007 Management Shell tasks via scripting
Exchange event sink scripting error when configuring email disclaimer
EMS add-on tool generates graphical Exchange Server 2007 reports
A primer on the Exchange Server 2007 Exchange Management Shell
How to generate HTML reports with the Exchange Management Shell (EMS)
Use the Exchange Management Shell Set command to block senders
How to test Exchange Management Shell commands
Grant or deny permissions to access a user's Exchange 2007 mailbox

.PST Files
Pros and cons of Outlook 2007's storage engine redesign
Email issues after configuring hosted Exchange server on laptop
Avoid Outlook 2007 performance issues during repairs
Stop personal calendar appointments from showing on Exchange Server
Import and export .PST files in Exchange Server 2007
Microsoft fortifies Exchange Server with archiving
Understand data file storage in Outlook 2007 Roaming and Local folders
Problems arise after downloading email to .PST files
Migrate Exchange Server mailbox data to a .PST file
Top 5 Microsoft Outlook tips of 2008

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
bacn  (SearchExchange.com)
email bankruptcy  (SearchExchange.com)
offline folder file  (SearchExchange.com)
OST file  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


to make the appropriate adjustments to your macro security settings to get it to work, since it's an unsigned macro.

About the author: Serdar Yegulalp is editor of Windows Insight, a newsletter devoted to hints, tips, tricks, news and goodies for all flavors of Windows users.

MEMBER FEEDBACK TO THIS MICROSOFT OUTLOOK TIP

I have a question on this tip and the handy script that you've referenced. I read the script and saw the code, but wasn't sure where to go for further reference.

Regarding the VBA script, there is a piece of the code that I'd like to modify for my own purposes.

How do I modify "Personal Folders" to something else (i.e., NOT a PST)?

Let's say I have a mailbox called Mailbox - Brian Henderson and have the following folders:

Basically, I'd like to run this on all of my email folders and have them all output to different file folders. Is this possible?

This is a great article... it gave me some great ideas. Thanks so much for pointing it out!
—Brian H.

Do you have comments on this tip? Let us know.

Please let others know how useful this tip was via the rating scale below. Do you know a helpful Exchange Server, Microsoft Outlook or SharePoint tip, timesaver or workaround? Email the editors to talk about writing for SearchExchange.com.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts