Hello,
How do you unmerge cells from an active sheet of a workbook.
I could manage to alter the following code I found from an online forum. But could someone please verify if this would work at all or come up with even better alternative?
Thank you.
How do you unmerge cells from an active sheet of a workbook.
I could manage to alter the following code I found from an online forum. But could someone please verify if this would work at all or come up with even better alternative?
Code:
Sub UnMergeFill()
Dim cell As Range, joinedCells As Range
For Each cell In ThisWorkbook.ActiveSheet.UsedRange
If cell.MergeCells Then
cell.MergeCells = False
End If
Next
End Sub
Thank you.
Last edited: