SmallScroll Method

Microsoft PowerPoint Visual Basic

SmallScroll Method

       

Scrolls through the specified document window by lines and columns.

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

expression   Required. An expression that returns a DocumentWindow object.

Down   Optional Long. Specifies the number of lines to scroll down.

Up   Optional Long. Specifies the number of lines to scroll up.

ToRight   Optional Long. Specifies the number of columns to scroll right.

ToLeft   Optional Long. Specifies the number of columns to scroll left.

Remarks

If no arguments are specified, this method scrolls down one line. If Down and Up are both specified, their effects are combined. For example, if Down is 2 and Up is 4, this method scrolls up two lines. Similarly, if Right and Left are both specified, their effects are combined.

Any of the arguments can be a negative number.

Example

This example scrolls down three lines in the active window.

Application.ActiveWindow.SmallScroll Down:=3