Share via


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