Share via


Window.SmallScroll Method

Scrolls the contents of the window by rows or columns.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function SmallScroll ( _
    Down As Object, _
    Up As Object, _
    ToRight As Object, _
    ToLeft As Object _
) As Object
'Usage
Dim instance As Window
Dim Down As Object
Dim Up As Object
Dim ToRight As Object
Dim ToLeft As Object
Dim returnValue As Object

returnValue = instance.SmallScroll(Down, _
    Up, ToRight, ToLeft)
Object SmallScroll(
    Object Down,
    Object Up,
    Object ToRight,
    Object ToLeft
)

Parameters

  • Down
    Type: System.Object

    Optional Object. The number of rows to scroll the contents down.

  • Up
    Type: System.Object

    Optional Object. The number of rows to scroll the contents up.

  • ToRight
    Type: System.Object

    Optional Object. The number of columns to scroll the contents to the right.

  • ToLeft
    Type: System.Object

    Optional Object. The number of columns to scroll the contents to the left.

Return Value

Type: System.Object

Remarks

If Down and Up 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 contents are scrolled up three rows.

If ToLeft and ToRight are both specified, the contents of the window are scrolled by the difference of the arguments. For example, if ToLeft is 3 and ToRight is 6, the contents are scrolled to the right three columns.

Any of these arguments can be a negative number.

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Excel Namespace