Outlook is a great email client, and it takes care of all my emails. I receive plenty of emails with attachments and it becomes annoying to manually download them one by one. So, I tried to find a solution and found that users can set an Outlook rule to make it automatically save attachments.
I know that there are other users who will also appreciate this method. That’s why in this article I have discussed how to automatically save attachments in Outlook.
Also, if your Outlook emails get stuck in outbox, here is how you can fix it.
How To Automatically Save Attachments In Outlook?
Contents
To make Outlook download all the email attachments you need to create an Outlook rule for it. First, you will have to set up a VGA script and then create an Outlook rule to save attachments for the VBA script. So, here is how to automatically save attachments in Outlook.
1) Create The VBA Script For Saving Attachments On Outlook
To create the VBA script, follow the steps given below:
- Press the Alt + F11 keys to open the Microsoft Visual Basic window.
- Click on the Insert tab and select the Module option to open a new module window.
- Write or copy the following VBA script and paste it in the module window:
Public Sub SaveAttachmentsToDisk(MItem As Outlook.MailItem)
Dim oAttachment As Outlook.Attachment
Dim sSaveFolder As String
sSaveFolder = “C:\Users\Sanmay\Documents\Outlook Attachments”
For Each oAttachment In MItem.Attachments
oAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName
Next
End Sub - The path “C:\Users\Sanmay\Documents\Outlook Attachments” path is the path to the folder for saving the attachments. You will have to replace it with the path to the folder you want to save the attachments.
- Now, save the VBA script and close the window.
2) Setting Up Outlook Rule To Save Attachment
Once you have created the VBA script, it is time to set up the Outlook rule to save attachments. Follow the steps given below to do it:
- Open Outlook and click on the Rules option from the ribbon.
- Select the Manage Rules and Alerts option. This will open the Rules and Alerts window.
- Click on the New Rule option.
- Select the Apply rule on message I receive option and click on Next. This will open the Rules Wizard dialog.
- Check the Run a script box and click on the “a script” option to open the Select Script dialog.
- Select the download attachment script from the Select Script window and click on OK.
- Write a title for the rule and select the Turn on this rule option.
- Also, select the Run this rule now on messages already in the Inbox option to apply the rule for all the attachments currently present in your inbox. If you have already downloaded the attachments in your inbox, then avoid this option.
- Select the Finish option to save the rule.
After you have completed the above steps, Outlook will now automatically save the attachments sent to you, directly in the folder you mentioned in the path of the VBA script.
Wrapping Up
So, there you have it. Now you know how to automatically save attachments in Outlook. Follow the above steps carefully, especially while creating the VBA script. I would suggest you copy-paste the VBA script as given. If you have any further questions related to this article, ask them in the comment section below.
Normand Branconier says
This option is not in office 365
Check the Run a script box and click on the “a script” option to open the Select Script dialog.
Beverley says
I have the same issue – running Office 365 how can we select ‘Run a script’ to perform the action?
Conor says
Thank you for sharing this article. It helps me a lot.