Table of contents
Collapse the table of content
Expand the table of content

Page.IgnoreMaster Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

True for Microsoft Publisher to ignore the master page formatting for the specified page. Read/write Boolean.


expression. IgnoreMaster

_expression_A variable that represents an Page object.

Return Value



This example adds a red star in the upper left corner of the master page so that it shows up on each page; then it adds a couple of 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
© 2018 Microsoft