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

  1. Open Outlook 2016 and go to the "Home" tab in the ribbon.
  2. Click on the "Rules" button in the "Move" group.
  3. Click on "Manage Rules & Alerts" and then click on "New Rule".
  4. Select "Move messages from someone to a folder" and click "Next".
  5. Enter the email address or domain you want to move emails from and click "Next".
  6. Select the PST file you want to move the emails to and click "Next".
  7. Name the rule and click "Finish".

Method 2: Using a Script

  1. Open Outlook 2016 and go to the "Developer" tab in the ribbon.

  2. Click on the "Visual Basic" button and open the Visual Basic Editor.

  3. In the Editor, insert a new module by clicking "Insert" > "Module".

  4. 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
  5. Replace "PST File Path" with the actual path of the PST file you want to move the emails to.

  6. Save the module by clicking "File" > "Save" (or press Ctrl+S).

  7. Close the Visual Basic Editor and go back to Outlook.

  8. 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:

These add-ins often provide more advanced features and options for managing your PST files, such as scheduling backups and restoring emails.