Document.IsMasterDocument property (Word)
True if the specified document is a master document. Read-only Boolean.
Syntax
expression. IsMasterDocument
expression A variable that represents a Document object.
Remarks
A master document includes one or more subdocuments.
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
ActiveDocument.ActiveWindow.View.Type = wdMasterView
ActiveDocument.Subdocuments(1).Open
Else
MsgBox "This document is not a master document."
End If
See also
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.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro