Expand Minimize
This topic has not yet been rated - Rate this topic

Document.IsMasterDocument Property (Word)

Published: July 16, 2012

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 
 ActiveDocument.Subdocuments(1).Open 
Else 
 MsgBox "This document is not a master document." 
End If

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.