MergeCells Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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.