Compartilhar via


Window.LargeScroll Method (Word)

Scrolls a window or pane by the specified number of screens.

Syntax

expression .LargeScroll(Down, Up, ToRight, ToLeft)

expression Required. A variable that represents a Window object.

Parameters

Name

Required/Optional

Data Type

Description

Down

Optional

Variant

The number of screens to scroll the window down.

Up

Optional

Variant

The number of screens to scroll the window up.

ToRight

Optional

Variant

The number of screens to scroll the window to the right.

ToLeft

Optional

Variant

The number of screens to scroll the window to the left.

Remarks

This method is equivalent to clicking just before or just after the scroll boxes on the horizontal and vertical scroll bars.

If Down and Up are both specified, the window is scrolled by the difference of the arguments. For example, if Down is 2 and Up is 4, the window is scrolled up two screens. Similarly, if ToLeft and ToRight are both specified, the window is scrolled by the difference of the arguments.

Any of these arguments can be a negative number. If no arguments are specified, the window is scrolled down one screen.

Example

This example scrolls the active window down one screen.

ActiveDocument.ActiveWindow.LargeScroll Down:=1

This example splits the active window and then scrolls up two screens and to the right one screen.

With ActiveDocument.ActiveWindow 
 .Split = True 
 .LargeScroll Up:=2, ToRight:=1 
End With

See Also

Concepts

Window Object

Window Object Members