SmallScroll Method
Applies To
Pane object, Window object.
Description
Scrolls a window or pane by the specified number of lines. This method is equivalent to clicking the scroll arrows on the horizontal and vertical scroll bars.
Syntax
expression.SmallScroll(Down, Up, ToRight, ToLeft)
expression Required. An expression that returns a Pane or Window object.
Down Optional Variant. The number of lines to scroll the window down. A "line" corresponds to the distance scrolled by clicking the down scroll arrow on the vertical scroll bar once.
Up Optional Variant. The number of lines to scroll the window up. A "line" corresponds to the distance scrolled by clicking the up scroll arrow on the vertical scroll bar once.
ToRight Optional Variant. The number of lines to scroll the window to the right. A "line" corresponds to the distance scrolled by clicking the right scroll arrow on the horizontal scroll bar once.
ToLeft Optional Variant. The number of lines to scroll the window to the left. A "line" corresponds to the distance scrolled by clicking the left scroll arrow on the horizontal scroll bar once.
Remarks
If Down and Up are both specified, the window is scrolled by the difference of the arguments. For example, if Down is 3 and Up is 6, the window is scrolled up three lines. 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 by one line.
See Also
LargeScroll method, PageScroll method.
Example
This example scrolls the active window down one line.
ActiveWindow.SmallScroll Down:=1
This example splits the active window and then scrolls up and over to the left.
With ActiveWindow
.Split = True
.SmallScroll Up:=5, ToLeft:=5
End With