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.
Similar threads
Thread starter Title Forum Replies Date
P Shortcut Pane - add shortcut to Office365 group mailbox Using Outlook 1
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
N Outlook Email Rule execution through shortcut keys (VBA codes) Using Outlook 1
M Shortcut to another outlook item Using Outlook 0
M Contact group shortcut Using Outlook 3
R Toggle the Reading Pane using Keyboard Shortcut Using Outlook 0
S Shortcut/button to a Calendar Group Using Outlook 0
M Mark Complete keyboard shortcut... on a mac running Windows Bootcamp Using Outlook 0
B Can't create shortcut to Quickparts Using Outlook 3
iwshim word shortcut to search outlook Using Outlook 3
O Address Book Shortcut Using Outlook 4
M Trouble using keyboard shortcut for color categories in Outlook 2016 Using Outlook 3
S Desktop shortcut Using Outlook 1
Q shortcut to more stationery Using Outlook 4
A Shortcut for sending complete mail Using Outlook 1
I jump to body in open message with one keyboard shortcut? Using Outlook 3
T Column Header Keyboard Shortcut Available? Using Outlook 5
D VBA: Send-From Code for Template Shortcut? Using Outlook 0
D Selection of Send-From Account with Template VBA Shortcut Using Outlook 0
W keyboard shortcut to open Outlook... ? Using Outlook 2
S OL 2010 shortcut to edit received mail Using Outlook 3
L Shortcut to specific contact Using Outlook 4
C Want to Create Shortcut to Open Specific Calendars at the Same Time Using Outlook 2
S Shortcut for adding a recepient email id? Using Outlook 2
E Outlook Calendar Shortcut Using Outlook 3
T Is it possible to INSERT a string into email body via Shortcut. Outlook VBA and Custom Forms 2
M re-Attaching PSTs after upgrade to 2016 Using Outlook 0
P Outlook Randomly Not attaching (attachment file) Using Outlook 0
D Attaching date named files Using Outlook 3
L Creating a Task from Email and Attaching Original Email Outlook VBA and Custom Forms 6
D Attaching email conversations to tasks Using Outlook 2
R When attaching XLS file to email, it switches to Excel (if already opened) instead of attaching the file Using Outlook 2
D attaching a file Using Outlook 1
K Outlook 2010 prohibits me from attaching large files to emails Using Outlook 1
A Attaching mail items in Outlook 2010 Outlook VBA and Custom Forms 5
J Attaching Files to Outlook Outlook VBA and Custom Forms 1
D Tab Order Out of Sequence After Attaching Document Outlook VBA and Custom Forms 1
H attaching e-mails to new e-mail using VBA Outlook VBA and Custom Forms 1
A Two Inboxes, Same Email? Using Outlook 3
R Disable conversation thread from replying of recipients in the same subject. Please help Using Outlook 0
jChambler iCloud folders in Outlook are not the same as on iCloud Using Outlook 6
glnz How set up new IMAP on Outlook-Office 365 and merge in pst from Outlook 2003 for same two email accounts? Using Outlook 5
M Same file "stuck" on top of file list in "Attach File" drop down Using Outlook 4
X Unable to send an email from one account to another on same PC Using Outlook 2
P Desktop doesn't index Outlook IMAP files, laptop Outlook does index those same IMAP files Using Outlook 2
N Move emails of same conversation to same subfolder Using Outlook 6
S Received mail as part of DL, need to auto-CC the same when replying Outlook VBA and Custom Forms 5
I get count of all emails with same conversation ID Outlook VBA and Custom Forms 2
M warning for too many appointments on a same day in Outlook Using Outlook 1
A saving attachement to folder named the same as rule name Outlook VBA and Custom Forms 0

Similar threads

Top