Share via


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)

Syntax

'Declaration
Property MergeCells As Object
    Get
    Set
'Usage
Dim instance As Range
Dim value As Object

value = instance.MergeCells

instance.MergeCells = value
Object MergeCells { get; set; }

Property Value

Type: System.Object

Remarks

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.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace