Skip to main content

Remove Document Inspector Warning Include Personal Information

You may get warning message about the Document Inspector when you want to save Excel file.

Be careful! Parts of your document may include personal information that can't be removed by the Document Inspector.

You can remove this warning by any of the following methods.

Remove Document Inspector Warning

  1. Go to File > Info
  2. and Click in "Allow this information to be saved in your file".


  1. Goto File in the upper left hand corner
  2. Options > Trust Center > Trust Center Settings > Privacy Options
  3. Un-check the check box that says "Remove personal information from file properties on save"
  4. Click OK to apply the settings.

Remove Document Inspector Warning By VBA

This example uses the BeforeSave event to set the RemovePersonalInformation property to False, which means that personal information cannot be removed and you can't get warning message.

'------------------ Copy to ThisWorkbook ------------------
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    ActiveWorkbook.RemovePersonalInformation = False
End Sub

Leave a comment

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

Format your code: <pre><code class="language-vba">place your code here</code></pre>