DocumentInspectors オブジェクト (Office)

DocumentInspector オブジェクトのコレクションを表します。

注釈

DocumentInspectors コレクションは、Microsoft Word の Document オブジェクト、Excel の Workbook オブジェクト、および PowerPoint の Presentation オブジェクトの一部です。 DocumentInspectors コレクションには複数の DocumentInspector オブジェクトが含まれている、カスタム ドキュメント検査モジュールがインストールされているといくつかの組み込みオプションのいずれかです。

例

次の例では、ドキュメント検査モジュールのメソッドを 修正 し、操作や削除された特定の項目のステータスを表示します。

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 のサポートおよびフィードバックを参照してください。