You can also select the Run this rule now on messages already in ‘Inbox’ option if preferred.Enter a title for the rule in the text box on the last Rules Wizard dialog box.Select the download attachment script in the Select Script window, and click the OK button.Click a script to open the Select Script window.Some users might need to select a Check messages when they arrive option in older Outlook versions. Select the Apply rule on message I receive option and click Next to open the window shown directly below.Select Manage Rules & Alerts to open the Rules and Alerts window.To set up an Outlook rule for the download attachment script, click the Rules button.Set up an Outlook rule for the VBA script Replace ‘C:\Users\DT168\Documents\outlook-attachments’ with the full path of the folder to download the attachments to.Ģ. Note that the ‘C:\Users\DT168\Documents\outlook-attachments’ path in that script is an example.Paste that code into the VBA Module window with the Ctrl + V hotkey.OAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName
SSaveFolder = “C:\Users\DT168\Documents\outlook-attachments”įor Each oAttachment In MItem.Attachments Copy this VBA code with the Ctrl + C hotkey: Public Sub SaveAttachmentsToDisk(MItem As Outlook.MailItem).Click Insert and Module to open a new module window.
Press the Alt + F11 hotkey, which opens the Microsoft Visual Basic window. First, set up a VBA script that downloads the attachments to a specified folder.How can I set up an Outlook rule for downloading attachments? 1. You can configure Outlook to do exactly that with a VBA script and a rule for it. So, it would be handy if Outlook automatically downloaded all email attachments of newly received emails. Outlook users often need to download files attached to their emails.
Home › Outlook › How to › How to set an Outlook rule to download attachments to a folder