Range.UnMerge method (Excel)

Separates a merged area into individual cells.

Syntax

expression.UnMerge

expression A variable that represents a Range object.

Example

This example separates the merged range that contains cell A3.

With Range("a3") 
 If .MergeCells Then 
 .MergeArea.UnMerge 
 Else 
 MsgBox "not merged" 
 End If 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.