XLConnect (version 1.0.2)

getActiveSheetIndex-methods: Querying the active worksheet index

Description

Queries the index of the active worksheet in a '>workbook.

Usage

# S4 method for workbook
getActiveSheetIndex(object)

Arguments

object

The '>workbook to use

See Also

'>workbook, getActiveSheetName

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataCamp Workspace