If you plan to share an electronic copy of a Microsoft Office Excel workbook, it is a good idea to review the workbook for hidden data or personal information that might be stored in the workbook itself or its document properties (metadata ). Because this hidden information can reveal details about your organization or about the workbook itself that you might not want to share publicly, you might want to remove this hidden information before you share the workbook with other people.

This article explains how the Document Inspector feature in Microsoft Office Excel can help you find and remove hidden data and personal information in your Excel workbooks.In this article



What types of hidden data and personal information are stored in workbooks?

Several types of hidden data and personal information can be saved in an Excel workbook. This information might not be immediately visible when you view the workbook in Office Excel, but it might be possible for other people to view or retrieve the information.

Hidden information can include the data that Office Excel adds to a workbook to enable you to collaborate on it with other people. It can also include information that you deliberately designate as hidden.

Excel workbooks can contain the following types of hidden data and personal information:

What information can the Document Inspector find and remove from workbooks?

In Office Excel, the Document Inspector displays several different Inspectors that enable you to find and remove hidden data and personal information that is specific to Excel workbooks. For a list of the different types of hidden data and personal information that the Document Inspector can find and remove from Excel workbooks, review the following table.

Note If your organization customized the Document Inspector by adding Inspector modules, you might be able to check your workbooks for additional types of information.

Office Excel

Inspector name Finds and removes
Comments and Annotations
  • Comments
  • Ink annotations
Document Properties and Personal Information
  • Document properties, including information from the Summary, Statistics, and Custom tabs of the Document Properties dialog box
  • E-mail headers
  • Routing slips
  • Send-for-review information
  • Document server properties
  • Document Management Policy information
  • Content type information
  • User name
  • Printer path information
  • Scenario comments
  • File path for publishing Web pages
  • Comments for defined names and table names
  • Inactive external data connections
Headers and Footers
  • Information in worksheet headers
  • Information in worksheet footers
Hidden Rows and Columns
  • Hidden rows
  • Hidden columns that contain data
  • Notes:

    • If there are hidden columns in your workbook that do not contain data and they are located between columns that do contain data, these empty hidden columns will also be detected and removed.
    • If the hidden rows or columns in your workbook contain data, you might change the results of the calculations or formulas in your workbook by removing them. If you do not know what information the hidden rows or columns contain, close the Document Inspector, unhide the hidden rows or columns, and then review their contents.
    • This Inspector does not detect shapes, charts, controls, Microsoft ActiveX objects and controls, pictures, or SmartArt graphics that might be located in hidden columns.
Hidden Worksheets
  • Hidden worksheets
  • Note If the hidden worksheets in your workbook contain data, you might change the results of the calculations or formulas in your workbook by removing them. If you do not know what information the hidden worksheets contain, close the Document Inspector, unhide the hidden worksheets, and then review their contents.

Custom XML Data
  • Custom XML data that might be stored within a workbook
Invisible Content
  • Objects that are not visible because they are formatted as invisible
  • Note This Inspector does not detect objects that are covered by other objects.

How do I find and remove hidden data and personal information in my workbooks?

You can use the Document Inspector to find and remove hidden data and personal information in Excel workbooks that were created in Office Excel and earlier versions. It is a good idea to use the Document Inspector before you share an electronic copy of your workbook, such as in an e-mail attachment.

  1. Open the workbook that you want to inspect for hidden data and personal information.
  2. Click the Microsoft Office Button button image, click Save As, and then type a name in the File name box to save a copy of your original workbook.

    Important It is a good idea to use the Document Inspector on a copy of your original workbook because it is not always possible to restore the data that the Document Inspector removes.

  3. In the copy of your original workbook, click the Microsoft Office Button button image, point to Prepare, and then click Inspect Document.
  4. In the Document Inspector dialog box, select the check boxes to choose the types of hidden content that you want to be inspected. For more information about the individual Inspectors, see
  5. Click Inspect.
  6. Review the results of the inspection in the Document Inspector dialog box.
  7. Click Remove All next to the inspection results for the types of hidden content that you want to remove from your document.

    Important

    • If you remove hidden content from your document, you might not be able to restore it by clicking Undo.
    • If you remove hidden rows, columns, or worksheets that contain data, you might change the results of the calculations or formulas in your workbook. If you do not know what information the hidden rows, columns or worksheets contain, close the Document Inspector, unhide the hidden rows, columns, or worksheets, and then review their contents.