Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.42 KB

Office.DocumentInspectors.md

File metadata and controls

48 lines (30 loc) · 1.42 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
DocumentInspectors object (Office)
vbaof11.chm278000
vbaof11.chm278000
Office.DocumentInspectors
8366d7cd-e016-bb99-d27f-749ca10352f1
01/08/2019
medium

DocumentInspectors object (Office)

Represents a collection of DocumentInspector objects.

Remarks

The DocumentInspectors collection is part of the Document object in Microsoft Word, the Workbook object in Excel, and the Presentation object in PowerPoint. A DocumentInspectors collection contains multiple DocumentInspector objects, one for some built-in options and each installed custom Document Inspector module.

Example

The following example calls the Fix method of a Document Inspector module and displays the status of the action and the specific items that are removed.

Public Sub FixDocument() 
Dim docStatus As MsoDocInspectorStatus 
Dim results As String 
 ActiveDocument.DocumentInspectors(3).Fix docStatus, results 
 
 MsgBox docStatus 
 MsgBox("The following items were removed " & results) 
 
End Sub 

See also

[!includeSupport and feedback]