DisplayVerticalScrollBar Property Example

This example displays the vertical and horizontal scroll bars for each window in the Windows collection.

For Each myWindow In Windows
    myWindow.DisplayVerticalScrollBar = True
    myWindow.DisplayHorizontalScrollBar = True
Next myWindow

This example toggles the vertical scroll bar for the active window.

Set aWindow = ActiveDocument.ActiveWindow
aWindow.DisplayVerticalScrollBar = _
    Not aWindow.DisplayVerticalScrollBar