DisplayVerticalRuler Property Example

This example switches each window in the Windows collection to print layout view and displays the horizontal and vertical rulers.

For Each myWindow In Windows
    With myWindow
        .View.Type = wdPrintView
        .DisplayRulers = True
        .DisplayVerticalRuler = True
    End With
Next myWindow

This example hides the horizontal and vertical rulers for the active window.

With ActiveDocument.ActiveWindow
    .DisplayVerticalRuler = False
    .DisplayRulers = False
End With