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
VIEW MEMBER FEEDACK TO THIS MICROSOFT OUTLOOK TIP
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:

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

    Set TargetFolderItems = ns.Folders.Item( _ 
    "Personal Folders").Folders.Item("Temp").Items

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:

Mailbox -Brian Henderson
   project 1
       folder a
   project 2
       folder b

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.




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


RELATED CONTENT
Microsoft Outlook
Does Exchange cached mode work with all versions of Microsoft Outlook?
How to access SharePoint sites through Microsoft Outlook
What makes Microsoft Outlook 2007's Search feature special?
Uncovering Microsoft Outlook 2007's hidden diagnostic tools
How Microsoft Office Communicator enhances Outlook 2007 functionality
Microsoft Outlook .PST file FAQs
Tool exports messages from Microsoft Outlook to Unix .EML file format
DetachPipe: Outlook add-in tool saves and restores email attachments
Install the Outlook Connector to use Hotmail in Microsoft Outlook
A few favorite Microsoft Exchange Server blogs
Microsoft Outlook Research

Microsoft Exchange Server Scripts and Programming
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
Control query results with Exchange Management Shell's Format command
How to use Exchange Management Shell's Filter command
How to use the Exchange Management Shell command syntax
Fix OWA message size limit issue after Exchange 2007 SP1 upgrade

.PST Files
Why are .PST files a security threat to Exchange Server mailboxes?
Microsoft Outlook .PST file FAQs
Export Exchange public folder calendar to Outlook .PST file
Control Microsoft Outlook .PST file size and usage via the registry
Best practices for using Outlook .PST files on portable USB drives
Tools that support Boolean searches of Exchange mailbox data and .PSTs
Migrating .PST files to new Exchange 2003 mail stores
Microsoft Outlook 2003 and OWA email archiving options
Performance problems with Microsoft Outlook 2007 .PST and .OST files
How to recover email in a specific date range from a .PST file

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

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.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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