Muokkaa

Jaa


Document.IsSubdocument property (Word)

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.

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

See also

Document Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.