Hi, Is there a code to perform this action on the entire sheet? TY
Khalid NGO Excel Ninja Dec 8, 2016 #2 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,
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,