Share via


IgnoreMaster Property [Publisher 2003 VBA Language Reference]

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

expression.IgnoreMaster

expression Required. An expression that returns one of the objects in the Applies To list.

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.

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

Applies to | Page Object