Hi,
I have a code in VBA that downloads my Outlook attachments but id like to update if possible.
Here is the current code.
I'd like to change the following bit if possible.
Can this be changed so that it generates the previous day?
Can this be changed so that it only grabs the first 5 letters of the e-mail address?
Any help is greatly appreciated.
Tom
I have a code in VBA that downloads my Outlook attachments but id like to update if possible.
Here is the current code.
Code:
Public Sub SaveAttachmentsToDiskOperaCorrection(MItem As Outlook.MailItem)
Dim oAttachment As Outlook.Attachment
Dim sSaveFolder As String
sSaveFolder = "C:\Users\tmona623\Desktop\Cash Dec\AutoDownload\Opera Reports\"
For Each oAttachment In MItem.Attachments
oAttachment.SaveAsFile sSaveFolder & Format(Date, "DD-MM-YY") & " " & MItem.SenderEmailAddress & " " & oAttachment.DisplayName
Next
End Sub
I'd like to change the following bit if possible.
Code:
& Format(Date, "DD-MM-YY")
Code:
& MItem.SenderEmailAddress
Any help is greatly appreciated.
Tom