Shortcut for attaching the same file repeatedly

Status
Not open for further replies.

RJL

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
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
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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"
    objItem.Attachments.Add strAtt

    Set objItem = Nothing

End Sub
 

RJL

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
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.

Thanks for your help.

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"
    objItem.Attachments.Add strAtt

    Set objItem = Nothing

End Sub
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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.

Thanks for your help.
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
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
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
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
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.
 
Status
Not open for further replies.
Top