In the above answers you can sort.
If you do not know where the merged cells are located, you can use the following procedure to quickly find them.
When I built Mappit! I realized that when I developed the combined reporting of cells that combined cells were part of xlBlanks
That way, you can use the code to immediately detect merged cells, and not for every cell test for the MergedCells property, which is true.
Sub DetectMerged() Dim rng1 As Range Dim rng2 As Range On Error Resume Next Set rng1 = Intersect(Cells.SpecialCells(xlFormulas), Cells.SpecialCells(xlBlanks)) Set rng2 = Intersect(Cells.SpecialCells(xlConstants), Cells.SpecialCells(xlBlanks)) On Error GoTo 0 If Not rng1 Is Nothing Then MsgBox "Merged formulae cells in " & rng1.Address(0, 0) If Not rng2 Is Nothing Then MsgBox "Merged constant cells in " & rng2.Address(0, 0) End Sub
brettdj
source share