Share via


SmallScroll Method

Scrolls the contents of the window by rows or columns.

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

*expression   * Required. An expression that returns a Window object.

Down   Optional Variant. The number of rows to scroll the contents down.

Up   Optional Variant. The number of rows to scroll the contents up.

ToRight   Optional Variant. The number of columns to scroll the contents to the right.

ToLeft   Optional Variant. The number of columns to scroll the contents to the left.

Remarks

If Down and Up or ToLeft andToRight are both specified, the contents of the window are scrolled by the difference of the arguments. For example, if Down is 3 and Up is 6, the the contents are scrolled up three rows.

Any of these arguments can be a negative number.

Example

This example scrolls the contents of the active window of Spreadsheet1 down three rows.

Spreadsheet1.ActiveWindow.SmallScroll 3

Applies to | Window Object

See Also | LargeScroll Method