Document.MasterPages property (Publisher)

Returns the MasterPages collection for the specified publication.

Syntax

expression.MasterPages

expression A variable that represents a Document object.

Return value

MasterPages

Example

The following example sets the text in the first text frame on the master page to Second Quarter.

Dim mp As MasterPages 
 
Set mp = ActiveDocument.MasterPages 
 
With mp.Item(1) 
 .Shapes(1).TextFrame.TextRange.Text = "Second Quarter" 
End With

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.