Learn R Programming

openxlsx (version 1.0.3)

showGridLines: Set worksheet gridlines to show or hide.

Description

Set worksheet gridlines to show or hide.

Usage

showGridLines(wb, sheet, showGridLines = FALSE)

Arguments

wb
A workbook object
sheet
A name or index of a worksheet
showGridLines
A logical. If TRUE, grid lines are hidden.

Examples

Run this code
wb <- loadWorkbook(xlsxFile = file.path(path.package("openxlsx"), "loadExample.xlsx"))
sheets(wb) ## list worksheets in workbook
showGridLines(wb, 1, showGridLines = FALSE)
showGridLines(wb, "Empty sheet", showGridLines = FALSE)
saveWorkbook(wb, "showGridLinesExample.xlsx", overwrite = TRUE)

Run the code above in your browser using DataLab