MasterPages.Add Method
Publisher Developer Reference |
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 will be 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.
Visual Basic for Applications |
---|
|
See Also