Learn R Programming

XLConnect (version 0.2-9)

getActiveSheetName-methods: Querying the active worksheet name

Description

Queries the name of the active worksheet in a workbook.

Usage

## S3 method for class 'workbook':
getActiveSheetName(object)

Arguments

object
The workbook to use

See Also

workbook, getActiveSheetIndex

Examples

Run this code
# 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 name
activeSheet <- getActiveSheetName(wb)

Run the code above in your browser using DataLab