How to Auto Export the Specific Incoming Emails as Word Documents in Outlook

Some users often need to export the specific incoming emails as Word documents. In this article, we will introduce a method that can configure Outlook to automatically accomplish this task.

In general, for the extremely important emails, users are accustomed to storing them in the local folder as a text file or Word document. Unquestionably, it is too troublesome to export the vital emails manually every time. Therefore, here we’ll share an approach which can let Outlook auto get it.

Auto Export the Specific Incoming Emails as Word documents

  1. At the beginning, launch Outlook application.
  2. Then, access VBA editor by reading “How to Run VBA Code in Your Outlook“.
  3. Next, copy the following code into a module.
Sub ExportEmailBodyToWordDoc(objMail As Outlook.MailItem)
    Dim strFolder As String
    Dim strSubject As String
    Dim strFile As String

    'Change the path to the specific Windows folder
    strFolder = "E:\Emails"

    If objMail.Subject <> "" Then

       'Remove unsupported characters in subject
       strSubject = objMail.Subject
       strSubject = Replace(strSubject, "/", " ")
       strSubject = Replace(strSubject, "\", " ")
       strSubject = Replace(strSubject, ":", "")
       strSubject = Replace(strSubject, "?", " ")
       strSubject = Replace(strSubject, Chr(34), " ")

       strFile = strFolder & "\" & objMail.Subject & ".doc"
       objMail.SaveAs strFile, olDoc
    End If
End Sub

VBA Code - Auto Export the Specific Incoming Emails as Word documents

  1. In the code, change the path of specific Windows folder to save the exported Word documents.
  2. Later, exit VBA editor.
  3. Subsequently, go to “File” and click “Manage Rules & Alerts” button.
  4. In the “Rules and Alerts” window, click “New Rule” button.
  5. Then, in “Rules Wizard”, select “Apply rule on messages I receive” and hit “Next”.Create New Rule
  6. Next, set the conditions of specific incoming emails as per your needs, such as from specific persons or groups.Set Rule Conditions
  7. After that, in “Select action(s)” step, select “run a script”.
  8. Then, click “script” and select the previously added macro.Select Rule Action
  9. Lastly, follow the onscreen instructions to finish rule setup.
  10. From now on, every time a specific incoming email arrives in your mailbox, it will be automatically exported as a Word document in the predefined folder.Auto Exported Emails in Word Documents

Fix Corrupted Outlook PST Files

Like other software, Outlook can crash now and then. Every time when it crashes, Outlook PST file is actually in danger of corruption. Therefore, it is quite difficult to predict and prevent PST corruption. What users can do is backing up Outlook PST files at regular intervals and keeping a cutting-edge PST repair tool, such as DataNumen Outlook Repair, which can repair PST file like a breeze.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair SQL Server and outlook repair software products. For more information visit

Leave a Reply

Your email address will not be published. Required fields are marked *