+ Reply to Thread
Results 1 to 2 of 2

Save email attachment in a specific folder.

  1. #1
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Save email attachment in a specific folder.

    I would like to save an email attachment in a network or hard drive folder based on the date of the email and save in the folder with the format mm.dd (month.day).

    I have the following macro that will save an email attachment automatically to a folder named saveFolder = "c:\attachments\".

    Public Sub saveAttachtoDisk(itm As Outlook.MailItem)
    Dim objAtt As Outlook.Attachment
    Dim saveFolder As String
    saveFolder = "c:\attachments\"
    For Each objAtt In itm.Attachments
    objAtt.SaveAsFile saveFolder & "\" & objAtt.DisplayName
    Set objAtt = Nothing
    Next
    End Sub

    Can someone help me with the additional code to accomplish this?

    Thank you.
    Jim15

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Save email attachment in a specific folder.

    Possibly with...
    Please Login or Register  to view this content.

+ 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. [SOLVED] Rule to file email in email folder, save the attachment to desk top and update spreadsheet
    By JET2011 in forum Outlook Formatting & Functions
    Replies: 49
    Last Post: 08-29-2018, 12:49 PM
  2. Check if email is unread in outlook then save attachment to folder
    By sonyat810 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2018, 03:10 PM
  3. VBA - To save attachment from email to folder
    By narindran in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2016, 11:35 PM
  4. [SOLVED] How to get outlook email attachment using excel vba and save it in a specified folder
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2016, 08:34 PM
  5. Macro to save email attachments with date received in attachment name
    By ohisofly in forum Outlook Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2015, 05:38 PM
  6. Trying to save email by attachment name using VBA code
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2012, 04:29 PM
  7. Outlook, print pdf Save Attachment, Move Email To A Subfolder
    By stephen1000 in forum Outlook Programming / VBA / Macros
    Replies: 7
    Last Post: 11-16-2009, 07:18 PM

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