This documentation is archived and is not being maintained.

Range.MergeCells Property

Determines if the range or style contains merged cells.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Object MergeCells { get; set; }

Property Value

Type: System.Object

This property returns True if the range or style contains merged cells.

When you select a range that contains merged cells, the resulting selection may be different from the intended selection. Use the Address property to check the address of the selected range.

Show: