Hi all,
I am using a simple macro to auto save attachments from outlook to hard drive, it works perfectly on 2013, but not on 2016. (i have checked trust center and reference, but nothing wrong with it ) there is no error as well. when i click "run the rule" on outlook, nothing happens.
Please help!!!!! Thank you
please see the code below:
Public Sub saveAttachtoDisk(itm As Outlook.MailItem) Dim objAtt As Outlook.Attachment Dim savefolder As String savefolder = "C:\PERSONAL\Mike\test\" For Each objAtt In itm.Attachments objAtt.SaveAsFile savefolder & "\" & objAtt.DisplayName Set objAtt = Nothing Next
End Sub