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

Dim range1 As Range

Dim returnValue As Object
returnValue = range1.MergeCells

Dim sampleValue As Object
range1.MergeCells = sampleValue

Property MergeCells() As Object
public System.Object get_MergeCells();
public void set_MergeCells(System.Object);
function get MergeCells() : Object;
function set MergeCells(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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms