PageHeight Property

Microsoft Publisher Visual Basic

expression.PageHeight

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

Example

This example specifies a height of five inches for the pages in the active publication.

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