DisplayHorizontalScrollBar Property

Microsoft Word Visual Basic

True if a horizontal scroll bar is displayed for the specified window. Read/write Boolean.

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.

Dim winTemp As Window

Set winTemp = Windows("Document1")

winTemp.DisplayHorizontalScrollBar = _
    Not winTemp.DisplayHorizontalScrollBar