sheet_select: Select sheet

View source: R/read_xlsx.R

sheet_selectR Documentation

Select sheet

Description

Set a particular sheet selected when workbook will be edited.

Usage

sheet_select(x, sheet)

Arguments

x

rxlsx object

sheet

sheet name

Examples

my_ws <- read_xlsx()
my_pres <- add_sheet(my_ws, label = "new sheet")
my_pres <- sheet_select(my_ws, sheet = "new sheet")
print(my_ws, target = tempfile(fileext = ".xlsx") )

officer documentation built on Oct. 10, 2024, 1:06 a.m.