Skip to contents

Returns the worksheet names within an xlsx file

Usage

read_sheet_names(file)

Arguments

file

An xlsx or xlsm file.

Value

Character vector of worksheet names.

Examples

wb_load(system.file("extdata", "openxlsx2_example.xlsx", package = "openxlsx2"))$get_sheet_names()
#>   Sheet1   Sheet2 
#> "Sheet1" "Sheet2"