PageColumns Property

Microsoft Word Visual Basic

PageColumns Property

       

Returns or sets the number of pages to be displayed side by side on-screen at the same time in print layout view or print preview. Read/write Long.

expression.PageColumns

expression   Required. An expression that returns a Zoom object.

Example

This example switches the active window to print layout view and displays two pages side by side.

With ActiveDocument.ActiveWindow.View
    .Type = wdPrintView
    .Zoom.PageColumns = 2
    .Zoom.PageRows = 1
End With

This example switches the document window for Hello.doc to print layout view and displays one full page.

With Windows("Hello.doc").View
    .Type = wdPrintView
    With .Zoom
        .PageColumns = 1
        .PageRows = 1
        .PageFit = wdPageFitFullPage
    End With
End With