You can create an extension method:
public static void Merge(this ExcelRangeBase range) { ExcelCellAddress start = range.Start; ExcelCellAddress end = range.End; range.Worksheet.Cells[start.Row, start.Column, end.Row, end.Column].Merge = true; }
You can use this as you could with interop:
range.Merge();
Paul Cassidy Jan 26 '17 at 12:02 on 2017-01-26 12:02
source share