DocumentInspectors 对象 (Office)

表示 DocumentInspector 对象的集合。

备注

DocumentInspectors 集合是 Microsoft Word 中的 Document 对象、Excel 中的 Workbook 对象和 PowerPoint 中的 Presentation 对象的一部分。 DocumentInspectors 集合包含多个 DocumentInspector 对象,其中每一个对象都用于一些内置选项以及安装的一个自定义文档检查器模块。

示例

以下示例调用文档检查器模块的 Fix 方法,并显示操作的状态和删除的特定项。

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 

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。