Page.IgnoreMaster property (Publisher)
True for Microsoft Publisher to ignore the master page formatting for the specified page. Read/write Boolean.
Syntax
expression.IgnoreMaster
expression A variable that represents a Page object.
Return value
Boolean
Example
This example adds a red star in the upper-left corner of the master page so that it shows up on each page; it then adds a few new pages and sets one of the pages to ignore the master page so that the shape doesn't show on it.
Sub AddNewPageIgnoreMaster()
Dim pgNew As Page
With ActiveDocument
.MasterPages(1).Shapes.AddShape(Type:=msoShape5pointStar, _
Left:=50, Top:=50, Width:=50, Height:=50).Fill.ForeColor _
.CMYK.SetCMYK Cyan:=0, Magenta:=255, Yellow:=255, Black:=0
.Pages.Add Count:=1, After:=1
Set pgNew = .Pages.Add(Count:=1, After:=1)
pgNew.IgnoreMaster = True
End With
End Sub
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.