This documentation is archived and is not being maintained.

Document.IsSubdocument Property

Office 2007
True if the specified document is a subdocument of a master document. Read-only Boolean.

Syntax

expression.IsSubdocument

expression   A variable that represents a Document object.

Example

This example determines whether Sales.doc is a subdocument and then displays a message indicating the status of Sales.doc.

Visual Basic for Applications
If Documents("Sales.doc").IsSubdocument = True Then
    MsgBox "Sales.doc is a subdocument."
Else
    MsgBox "Sales.doc is not a subdocument."
End If



Show: