Learn R Programming

openxlsx2 (version 1.4)

wb_add_named_style: Apply styling to a cell region with a named style

Description

Set the styling to a named style for a cell region. Use wb_add_cell_style() to style a cell region with custom parameters. A named style is the one in spreadsheet software, like "Normal", "Warning".

Usage

wb_add_named_style(
  wb,
  sheet = current_sheet(),
  dims = "A1",
  name = "Normal",
  font_name = NULL,
  font_size = NULL
)

Value

The wbWorkbook, invisibly

Arguments

wb

A wbWorkbook object

sheet

A worksheet

dims

A cell range

name

The named style name.

font_name, font_size

optional else the default of the theme

See Also

Other styles: wb_add_border(), wb_add_cell_style(), wb_add_fill(), wb_add_font(), wb_add_numfmt(), wb_cell_style