SmallScroll Method

Applies To

Pane Object, Window Object.

Description

Scrolls the window by rows or columns.

Syntax

object.SmallScroll(down, up, toRight, toLeft)

object

Required. The window to scroll.

down

Optional. The number of rows to scroll the window down.

up

Optional. The number of rows to scroll the window up.

toRight

Optional. The number of columns to scroll the window right.

toLeft

Optional. The number of columns to scroll the window left.

Remarks

If down and up are both specified, the window is scrolled by the difference of the arguments. For example, if down is three and up is six, the window is scrolled up three rows.

If toLeft and toRight are both specified, the window is scrolled by the difference of the arguments. For example, if toLeft is three and toRight is six, the window is scrolled right three columns.

Any of the arguments can be a negative number.

See Also

LargeScroll Method.

Example

This example scrolls the active window of Sheet1 down three rows.


Worksheets("Sheet1").Activate
ActiveWindow.SmallScroll down:=3