Window.DisplayHorizontalScrollBar property (Word)

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

Syntax

expression.DisplayHorizontalScrollBar

expression A variable that represents a Window object.

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

See also

Window Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.