Skip to contents

mergeCellForced wraps around openxlsx::removeCellMerge() and openxlsx::mergeCells() to merge cells if there are merged cell in the specified range.

Usage

mergeCellForced(wb, sheet, cols, rows)

Arguments

wb

A workbook object

sheet

A name or index of a worksheet

cols

Columns to merge

rows

corresponding rows to merge