Share via


Window.ScrollWorkbookTabs Method

Scrolls through the workbook tabs at the bottom of the window.

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

Syntax

'Declaration
Function ScrollWorkbookTabs ( _
    Sheets As Object, _
    Position As Object _
) As Object
'Usage
Dim instance As Window
Dim Sheets As Object
Dim Position As Object
Dim returnValue As Object

returnValue = instance.ScrollWorkbookTabs(Sheets, _
    Position)
Object ScrollWorkbookTabs(
    Object Sheets,
    Object Position
)

Parameters

  • Sheets
    Type: System.Object

    Optional Object. The number of sheets to scroll by. Use a positive number to scroll forward, a negative number to scroll backward, or 0 (zero) not to scroll at all. You must specify Sheets if you don't specify Position.

  • Position
    Type: System.Object

    Optional Object. Use xlFirst to scroll to the first sheet, or use xlLast to scroll to the last sheet. You must specify Position if you don't specify Sheets.

Return Value

Type: System.Object

Remarks

The ScrollWorkbookTabs method doesn't affect the active sheet in the workbook.

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Excel Namespace