DisplayScrollBars Property

Microsoft Word Visual Basic

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.

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.

Application.DisplayScrollBars = True
		

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

Dim blnTemp As Boolean

blnTemp = Application.DisplayScrollBars