DisplayHorizontalScrollBar Property Example

This example displays vertical and horizontal scroll bars for the active window.

With ActiveDocument.ActiveWindow
    .DisplayHorizontalScrollBar = True
    .DisplayVerticalScrollBar = True
End With

This example toggles the horizontal scroll bar of the window for Document1.

Set aWin = Windows("Document1")
aWin.DisplayHorizontalScrollBar = _
    Not aWin.DisplayHorizontalScrollBar