# Shortcut for attaching the same file repeatedly

#### RJL

New Member
I frequently attach one specific file to outgoing messages (i.e., it is the same file every time). I am looking for a short cut for doing this. I have already put the attach-file command on the quick access bar. Unfortunately, I do not want to put the text into the body of the message because it contains images, so Quick Steps doesn't help me.

Ideally, I'd like to click an icon or use a keyboard shortcut to attach this file. I am using Outlook 2013 with Windows 10.

#### Diane Poremsky

Senior Member
Can you use a macro? i have some here - although they are a bit more than you need but could trim the middle out to make it perfect to open a message with the file attached.
Use a Macro to Attach Files to New Messages

But.. you have to think to run the macro and it doesn't help if you reply with attachment (although a macro could do that too) It might be better to have a macro that adds the attachment to the message you are composing when you run it - like this simple macro - run it any time you are composing a message to add the attachment.

Code:
Public Sub AddAttachment()
Dim objItem As Object
Set objItem = Application.ActiveInspector.CurrentItem

strAtt = "D:\path\to\file.docx"

Set objItem = Nothing

End Sub

#### RJL

New Member
A macro would be fine. However, I have not used macros before, though I have tried to create a macro to solve this problem by creating a macro by recording a sequence of steps. It didn't work.

What does the macro below do? Is there a place you can point me to that would show me how to install the macro?

Actually, in some cases I will attach the file when replying to messages as well as when composing a new message.

Can you use a macro? i have some here - although they are a bit more than you need but could trim the middle out to make it perfect to open a message with the file attached.
Use a Macro to Attach Files to New Messages

But.. you have to think to run the macro and it doesn't help if you reply with attachment (although a macro could do that too) It might be better to have a macro that adds the attachment to the message you are composing when you run it - like this simple macro - run it any time you are composing a message to add the attachment.

Code:
Public Sub AddAttachment()
Dim objItem As Object
Set objItem = Application.ActiveInspector.CurrentItem

strAtt = "D:\path\to\file.docx"

Set objItem = Nothing

End Sub

#### Diane Poremsky

Senior Member
A macro would be fine. However, I have not used macros before, though I have tried to create a macro to solve this problem by creating a macro by recording a sequence of steps. It didn't work.

What does the macro below do? Is there a place you can point me to that would show me how to install the macro?

Actually, in some cases I will attach the file when replying to messages as well as when composing a new message.

The macro I posted will work on any compose message (new or replies) - but you need to click a button to run it. It's not automatic.

This shows how to use macros How to use Outlook's VBA Editor

Sent from my iPad using Tapatalk

#### RJL

New Member
The macro works! However, I'm having trouble finding the file that needs to be digitally signed. What is the filename?

#### Diane Poremsky

Senior Member
if you are digitally signing the macro, you will sign the entire macro project through the vb editor, not sign a specific file.

#### RJL

New Member
Thanks for the quick response. I mis-read the instructions on the VBA editor, re-checked and figured out my mistake.
Thanks for all your help. This did the trick.