Guide: Automatically Save Attachments in Outlook to Network Drive

Here are 2 ways to automatically save attachments in Outlook to network drive, via VBA and easier AOMEI Backupper professional. Let’s start to get the details!

By @Maggie Last Updated October 29, 2024

User case: Save email attachment to network drive

“I'd like to be able to save an email attachment to a network drive. We use a third-party app to process certain files, and it cannot scan SharePoint or OneDrive folders. I'm sure there's a way to do this, but I'm not having much luck in my search.

Plenty of users search for ‘how to automatically save attachments in Outlook’ on the Internet like the previous user case. To do this, you can improve data management efficiency and enhance data security. Thus, in the post, I will present 2 ways to automatically save attachments in Outlook to network drive, both in a manual way and professional way. Please continue to read.

How to automatically save attachments to network folder

Way 1. Automatically download Outlook attachments to folder with VBA and rule

Outlook VBA (Visual Basic for Applications) is a programming language for Microsoft Outlook that allows users to customize and automate the functionality of the Outlook application. VBA is a powerful macro language that is widely used in the Microsoft Office suite of VBA is a powerful macro language widely used in the Microsoft Office suite for a variety of applications, including Outlook, Excel, Word, and more.

To automatically download and save Outlook attachments using a VBA script, follow these steps:

Step 1. Open the Microsoft Visual Basic for Applications window by pressing Alt + F11.

Step 2. Insert a new module by clicking Insert > Module. Paste the below VBA script into the module window:

Public Sub SaveAttachmentsToDisk(MItem As Outlook.MailItem) Dim oAttachment As Outlook.Attachment Dim sSaveFolder As String sSaveFolder = "C:\Users\DT168\Documents\outlook-attachments\" For Each oAttachment In MItem.Attachments oAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName Next End Sub

✍Note: Replace the destination folder path in `sSaveFolder = "C:\Users\DT168\Documents\outlook-attachments\"` as you need.

Step 3. Save the VBA script and close the Microsoft Visual Basic for Applications window.

Step 4. In the Mail view, go to Home > Rules > Manage Rules & Alerts.

Step 5. In the Rules and Alerts dialog box, click the New Rule button on the E-mail Rules tab.

Step 6. In the Rules Wizard dialog box, select Apply rule on messages I receive and click Next.

Step 7. In the Which condition(s) do you want to check? dialog box, uncheck any options and click Next. Confirm by clicking Yes in the Microsoft Outlook dialog box.

Step 8. In the What do you want to do with the message? dialog box, check run a script, click the text of a script, select the script added in mark 2, and click OK. Then, click Next.

Step 9. In the Are there any exceptions? dialog box, click Next.

Step 10. In the last Rules Wizard dialog box, name the rule as mark 1, configure options as mark 2, and click Finish.

Step 11. Close the Rules and Alerts dialog box.

Now, all attachments from your email account will be automatically downloaded and saved into the specified destination folder, including attachments from incoming emails.

To save attachments to network folder, follow the below steps:

Step 1. Right-click on the folders that store your Outlook attachments, and choose Properties.

Step 2. Click on Share under the Sharing tab to give network access to the user groups you want. To allow everyone on the network to access this folder, just choose Everyone and click Add > Share.

Step 3. Go to Advanced Sharing section, click Advanced Sharing... and then tick Share this folder to enable the network sharing.

Step 4. Select Everyone and set permissions for it, like Full Control, Change or Read.

Way 2. Simpler way: Easiest Way to Backup Outlook Emails with Attachments

AOMEI Backuppert Professional can automatically save attachments in Outlook to network drive in only 5 steps, which eliminates complex operation processes and its Outlook's Backup feature enables you to safeguard email accounts integrated into the Outlook desktop application.

βœ” Auto backup: it offers a schedule backup feature to allow you backup Outlook data in daily/weekly/monthly/event triggers and USB plug-in mode as you need. βœ” Flexible email backup types: not only emails, you can also backup your mailbox folder like Inbox, Drafts, Notes, Synced messages, and so on. βœ” Rich backup destinations: you are allowed to backup Outlook to Cloud service like OneDrive, Share and NAS drive, local and external hard drives like USB flash drive, SSDs and HDDs. βœ” Wide range of compatibility: It is compatible with a wide range of Windows PC operating systems, including Windows 11/10/8.1/8/7/XP/Vista. And for Server users, try AOMEI Backupper Server.

Before you start:

  • Download AOMEI Backupper Professional and install it on your computer.
  • Loggin your outlook account and connect it.
Download Free Trial Win 11/10/8.1/8/7/XP
Secure Download

Step 1. In the main menu, choose Backup at the left-side menu and then click on Outlook Backup.

Step 2. Click on Add Outlook Data and select the account containing emails and attachments you intend to backup. Then click OK.

Step 3. Then in the second box, tick the inverted triangle and choose Add Share or NAS Devices and enter the according information of your target network drive.

Step 4. Click Schedule Backup icon at the bottom of the page and specify your auto backup frequencies.

Step 5. Then click Start Backup to automatically save attachments to network folder.

Verdict

If you want to automatically save attachments in Outlook to network, you can try the above 2 methods. As you can see, both of the two ways can help you archive Outlook attachments to network folders. But to be honest, the method way is simpler and more users-friendly.

AOMEI Backupper Professional is renowned for its powerful backup and restore utilities. Not only Outlook, you can also backup Yahoo!, Hotmail, Gmail, iCloud Mail, Exchange, Zoho Mail, etc. with only a few clicks. Now download this reliable software to have a try!