+ 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
    110

    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
    Valued Forum Contributor
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    2016
    Posts
    652

    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)

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