Document.IsMasterDocument Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if the specified document is a master document. Read-only Boolean.

expression .IsMasterDocument

expression A variable that represents a Document object.

A master document includes one or more subdocuments.

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 
 ActiveDocument.ActiveWindow.View.Type = wdMasterView 
 MsgBox "This document is not a master document." 
End If