Share via


Page.IgnoreMaster Property

Publisher Developer Reference

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

Syntax

expression.IgnoreMaster

expression   A variable that represents an 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; 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.

Visual Basic for Applications
  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.<strong>IgnoreMaster</strong> = True
End With

End Sub

See Also