Application.DisplayScrollBars Property

Word Developer Reference

True if Word displays a scroll bar in at least one document window. False if there are no scroll bars displayed in any window. Read/write Boolean.

Syntax

expression.DisplayScrollBars

expression   A variable that represents an Application object.

Remarks

Setting the DisplayScrollBars property to True displays horizontal and vertical scroll bars in all windows. Setting this property to False turns off all scroll bars in all windows.

Use the DisplayHorizontalScrollBar and DisplayVerticalScrollBar properties to display individual scroll bars in the specified window.

Example

This example displays horizontal and vertical scroll bars in all windows.

Visual Basic for Applications
  Application.DisplayScrollBars = True

This example returns True if there is a scroll bar currently displayed in any window.

Visual Basic for Applications
  Dim blnTemp As Boolean

blnTemp = Application.DisplayScrollBars

See Also