• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Unmerge Cells

Hi,

Can you not do this without code?
Just select all cells and select Unmerge Cells from Home tab.

If you really want to do this with VBA:
Code:
Sub Unmerge2()
    ActiveSheet.Cells.Unmerge
End Sub


And this for entire workbook:
Code:
Sub Unmerge()

    Dim wSheet As Worksheet
   
    For Each wSheet In Worksheets
        wSheet.UsedRange.Unmerge
    Next wSheet
End Sub

Regards,
 
Back
Top