편집

다음을 통해 공유


Application.DisplayScrollBars property (Word)

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.

Application.DisplayScrollBars = True

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

Dim blnTemp As Boolean 
 
blnTemp = Application.DisplayScrollBars

See also

Application 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.