IsMasterDocument Property

Applies To

Document object.

Description

True if the specified document is a master document. A master document includes one or more subdocuments. Read-only Boolean.

See Also

IsSubdocument property.

Example

If the active document is a master document, this example switches to master document view and opens the first subdocument.

If ActiveDocument.IsMasterDocument = True Then
    ActiveWindow.View.Type = wdMasterView
    ActiveDocument.Subdocuments(1).Open
Else
    MsgBox "This document is not a master document."
End If