'Declaration
Function Merge( _ Optional ByVal across As Boolean, _ Optional ByVal vertical As Boolean, _ Optional ByVal replace As Boolean _ ) As Boolean
Parameters
- across
- if set to
true
, merge cells in each row (or column) of the specified range as separate merged cells. - vertical
- if set to
true
, cells are merged by rows; otherwise, cells are merged by columns. It has effect only if across istrue
. - replace
- if set to
true
, intersected merged cells will be removed; otherwise, they'll be merged.
Return Value
true
if the cell range is merged; otherwise, false
.