Macro to automate attaching specific file to a new email

I always have to attach specific files to multiple emails I send each day.  I'd like a macro that I can run after I draft a new email which attaches the following files:

Attach the file: J:\Portfolio\_Reporting & Operations\Cash Flow Sheets\Morning Cash Recon.xlsx

Thank you.
Kevin BucklandInvestment OfficerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pls try
Sub InsertAttachments1()
    Dim myAttachments As Outlook.Attachments

    Dim NewMail As MailItem, oInspector As Inspector
    Set oInspector = Application.ActiveInspector
    If oInspector Is Nothing Then
        MsgBox "No active inspector"
        Set NewMail = oInspector.CurrentItem
        If NewMail.Sent Then
            MsgBox "This is not an editable email"
            Set myAttachments = NewMail.Attachments
            myAttachments.Add "J:\Portfolio\_Reporting & Operations\Cash Flow Sheets\Morning Cash Recon.xlsx"
        End If
    End If
End Sub

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alexei KuznetsovMicrosoft Outlook MVPCommented:
You can do that without macros. The free Add Attachments utility can add files from specified folder in one click on Outlook ribbon.

DISCLAIMER: I recommend this tool because I'm one of the developers, so feel free to ask any further questions.
Kevin BucklandInvestment OfficerAuthor Commented:
Worked great, thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.