MergeCells Property
Applies To
Range object, Style object.
Description
True if the range or style contains merged cells. Read/write Variant.
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.
See Also
Merge method, MergeArea property, UnMerge method.
Example
This example sets the value of the merged range that contains cell A3.
Set ma = Range("A3").MergeArea
If Range("A3").MergeCells Then
ma.Cells(1, 1).Value = "42"
End If