Now in the Rules Wizard (what do you want to do with the message?) dialog box, please: (1) Check the run a script option (2) Click the text of a script to open the Select Script dialog box, select the script we added in Step 2 and click the OK button (3) Click the Next button.ĩ. And then click the Yes button in the popping up Microsoft Outlook dialog box. In the Rules Wizard (which condition(s) do you want to check?) dialog box, please uncheck any option, and click the Next button. Now in the Rules Wizard dialog box, please click to select the Apply rule on messages I receive option, and click the Next button.ħ. In the opening Rules and Alerts dialog box, please click the New Rule button on the E-mail Rules tab. Go to the Mail view, and click Home > Rules > Manage Rules & Alerts. Save the VBA Script and close the Microsoft Visual Basic for Applications window.Ĥ. Note: Please find out sSaveFolder = "C:\Users\DT168\Documents\outlook-attachments\", and replace the destination folder’s path as you need.ģ. OAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName SSaveFolder = "C:\Users\DT168\Documents\outlook-attachments\"įor Each oAttachment In MItem.Attachments VBA: Auto Save Outlook Attachments into a certain folder Public Sub SaveAttachmentsToDisk(MItem As Outlook.MailItem) Click Insert > Module, and then paste below VBA script into the new opening Module window. Press Alt + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. This method will introduce a VBA script, and run this scrip with a rule to automatically download and save Outlook attachments to a certain folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |