getActiveSheetIndex-methods

0th

Percentile

Querying the active worksheet index

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

Keywords
methods, utilities
Usage
# S4 method for workbook
getActiveSheetIndex(object)
Arguments
object

The '>workbook to use

See Also

'>workbook, getActiveSheetName

Aliases
  • getActiveSheetIndex
  • getActiveSheetIndex-methods
  • getActiveSheetIndex,workbook-method
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)
# }
Documentation reproduced from package XLConnect, version 0.2-15, License: GPL-3

Community examples

Looks like there are no examples yet.