getActiveSheetIndex-methods: Querying the active worksheet index

getActiveSheetIndex-methodsR Documentation

Querying the active worksheet index

Description

Queries the index of the active worksheet in a workbook.

Usage

## S4 method for signature 'workbook'
getActiveSheetIndex(object)

Arguments

object

The workbook to use

Author(s)

Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch

See Also

workbook, getActiveSheetName

Examples

## Not run: 
# mtcars xlsx file from demoFiles subfolder of package XLConnect
demoExcelFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect")

# Load workbook
wb <- loadWorkbook(demoExcelFile)

# Query the active sheet index
activeSheet <- getActiveSheetIndex(wb)

## End(Not run)

XLConnect documentation built on Feb. 16, 2023, 5:53 p.m.