How to automatically move mails to pst in outlook 2016
There are a few ways to automatically move emails to a PST file in Outlook 2016. Here are a few methods:
Method 1: Using Rules
- Open Outlook 2016 and go to the "Home" tab in the ribbon.
- Click on the "Rules" button in the "Move" group.
- Click on "Manage Rules & Alerts" and then click on "New Rule".
- Select "Move messages from someone to a folder" and click "Next".
- Enter the email address or domain you want to move emails from and click "Next".
- Select the PST file you want to move the emails to and click "Next".
- Name the rule and click "Finish".
Method 2: Using a Script
-
Open Outlook 2016 and go to the "Developer" tab in the ribbon.
-
Click on the "Visual Basic" button and open the Visual Basic Editor.
-
In the Editor, insert a new module by clicking "Insert" > "Module".
-
Paste the following code into the module:
Sub MoveEmailsToPST() Dim olApp As New Outlook.Application Dim olNamespace As Outlook.Namespace Dim olFolder As MAPIFolder Dim olItems As Items Dim olItem As Object Set olNamespace = olApp.GetNamespace("MAPI") Set olFolder = olNamespace.GetDefaultFolder(olFolderInbox) Set olItems = olFolder.Items For Each olItem In olItems If olItem.Class = olMail Then If InStr(1, olItem.Subject, "Keyword") > 0 Then olItem.Move "PST File Path" End If End If Next olItem Set olItem = Nothing Set olItems = Nothing Set olFolder = Nothing Set olNamespace = Nothing Set olApp = Nothing End Sub
-
Replace "PST File Path" with the actual path of the PST file you want to move the emails to.
-
Save the module by clicking "File" > "Save" (or press Ctrl+S).
-
Close the Visual Basic Editor and go back to Outlook.
-
Go to the "Developer" tab and click on the "Run" button to run the script.
Method 3: Using a Third-Party Add-in
There are several third-party add-ins available that can help you automatically move emails to a PST file in Outlook 2016. Some popular options include:
- PST Export Tool
- Outlook PST Manager
- Email Backup Add-in
These add-ins often provide more advanced features and options for managing your PST files, such as scheduling backups and restoring emails.