+ Reply to Thread
Results 1 to 3 of 3

Save attachments to a file outside of Outlook

  1. #1
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Save attachments to a file outside of Outlook

    I receive an email daily with an attachment that I have to take and save to a specific file location. Is it possible to have VBA run in outlook to look for a specific attachment and save the attachment to that specific file location. The file is named the exact same thing each day so when it saved it would overwrite the existing file. Not sure if it matters but this is for work and I am on a file share server so multiple people have access to this location which I am fine with just not sure if that will effect the code or if I have to save it to a local file instead.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Save attachments to a file outside of Outlook

    I have something that does this on an "industrial Scale."

    Create a folder directly under the inbox of the mailbox to read. In the example I have a shared mailbox called Labor Analysis - if it's a personal mailbox, it will be the name of that mailbox whatever it is.

    Create a rule to move the mail in question into this folder.

    Create a subfolder to this folder.

    On the Control Panel on this sheet, fill in the mailbox name where indicated. Also fill out the table - the table tells the program which main folder (directly under inbox) you want to use and to which subfolder you want to move it after processing it. The third column tells the program what windows network folder to move the mail to and the fourth column tells the program what kind of attachments to download. You can use any wildcard commands known to the LIKE command in VBA. If not pattern is provided, then the mail is moved an no attachments are downloaded.

    You can use this utility to manage a number of main folders in the same mailbox.

    When you select a main folder, the program pulls the right information and the program is ready to process mail.

    The program will loop through all the mail in the main folder, download the atachments, move the mail to the subfolder (so it does not get processed again) and marks it as read.

    Documentation is included.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Re: Save attachments to a file outside of Outlook

    Thanks dflak, this is what I was looking for and your code is super clean, very much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Outlook Macro to save attachments to system folder with Date at end
    By WNErika in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2017, 01:36 PM
  2. [SOLVED] multiple attachments form Outlook to save on Desktop function
    By Karnik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2016, 06:08 PM
  3. Save Outlook attachments to a folder.
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2015, 06:05 AM
  4. VBA coding in Outlook 2010 to save attachments from emails
    By Ravipoojari in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2015, 05:28 AM
  5. Replies: 0
    Last Post: 03-17-2015, 05:45 AM
  6. Save Outlook Attachments
    By tejboyd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2014, 01:05 PM
  7. Outlook code - save attachments
    By Xx7 in forum Outlook Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2011, 02:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1