MasterPages.Add method (Publisher)

Adds a new Page object to the specified MasterPages object and returns the new Page object.

Syntax

expression.Add (IsTwoPageMaster, Abbreviation, Description)

expression A variable that represents a MasterPages object.

Parameters

Name Required/Optional Data type Description
IsTwoPageMaster Optional Boolean True if the master page is part of a two-page spread.
Abbreviation Optional String The abbreviation, or short name, for the master page. An error occurs if this is not unique.
Description Optional String The description for the master page.

Return value

Page

Example

The following example adds a new master page to the active document.

ActiveDocument.MasterPages.Add _ 
 IsTwoPageMaster:=False, _ 
 Abbreviation:="X", _ 
 Description:="Master Page X" 

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.