MergeCells Property

Microsoft Office Web Components Object Model

MergeCells Property

       

True if the specified range contains only merged cells. Read/write Variant.

expression.MergeCells

expression   Required. An expression that returns a Range object.

Remarks

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.

Use the UnMerge method to unmerge the specified range.