Window.DisplayVerticalScrollBar property (Word)
True if a vertical scroll bar is displayed for the specified window. Read/write Boolean.
Syntax
expression.DisplayVerticalScrollBar
expression A variable that represents a Window object.
Example
This example displays the vertical and horizontal scroll bars for each window in the Windows collection.
Dim winLoop As Window
For Each winLoop In Windows
winLoop.DisplayVerticalScrollBar = True
winLoop.DisplayHorizontalScrollBar = True
Next winLoop
This example toggles the vertical scroll bar for the active window.
Dim winTemp As Window
Set winTemp = ActiveDocument.ActiveWindow
winTemp.DisplayVerticalScrollBar = _
Not winTemp.DisplayVerticalScrollBar
See also
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.