sheet_names: Sheet names of an xlsx workbook

View source: R/read_xlsx.R

sheet_namesR Documentation

Sheet names of an xlsx workbook

Description

Return the sheet names of an rxlsx object, in the order they appear in the workbook.

Usage

sheet_names(x)

Arguments

x

an rxlsx object (created by read_xlsx()).

Value

A character vector of sheet names.

Examples

wb <- read_xlsx()
sheet_names(wb)

wb <- add_sheet(wb, label = "new sheet")
sheet_names(wb)

officer documentation built on April 24, 2026, 5:06 p.m.