Merge cell range

Description

Merges the selected cell range.

(function()
{
    Api.GetActiveSheet().GetRange("A1:B3").Merge(true);
})();

Methods used: GetActiveSheet, GetRange, Merge

Reference Microsoft VBA macro code

Sub example()
    Range("A1:B3").Merge
End Sub

Result

Merge cells

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).