Try now New API BETA
Try out the new view and capabilities of the API documentation
Merges the selected cell range.
(function() { Api.GetActiveSheet().GetRange("A1:B3").Merge(true); })();
Methods used: GetActiveSheet, GetRange, Merge
Sub example() Range("A1:B3").Merge End Sub