powered by
Remove column widths from a worksheet
wb_remove_col_widths(wb, sheet = current_sheet(), cols)
A workbook object
A name or index of a worksheet
Indices of columns to remove custom width (if any) from.
wb_set_col_widths()
## Create a new workbook wb <- wb_load(file = system.file("extdata", "loadExample.xlsx", package = "openxlsx2")) ## remove column widths in columns 1 to 20 wb_remove_col_widths(wb, 1, cols = 1:20)
Run the code above in your browser using DataLab