TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

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