PageSetup Property

Microsoft Publisher Visual Basic

object representing a publication’s page size, page layout and paper settings. Read-only.

expression.PageSetup

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

Remarks

You can only use the PageSetup property when printing multiple pages on a single sheet of printer paper. If the page size is greater than half the paper size, Publisher will display an error.

Example

This example specifies page setup options for a publication with multiple publication pages printed on each sheet of printer paper.

Sub SetTopMargin()
    With ActiveDocument.PageSetup
        .PageHeight = InchesToPoints(5)
        .PageWidth = InchesToPoints(8)
        .MultiplePagesPerSheet = True
        .TopMargin = InchesToPoints(0.25)
        .LeftMargin = InchesToPoints(0.25)
    End With
End Sub