getActiveSheetName-methods {XLConnect}R Documentation

Querying the active worksheet name

Description

Queries the name of the active worksheet in a workbook.

Usage

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

Arguments

object

The workbook to use

Author(s)

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

See Also

workbook, getActiveSheetIndex

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 name
activeSheet <- getActiveSheetName(wb)

## End(Not run)

[Package XLConnect version 1.0.10 Index]