Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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.