How to merge similar cells in excel with VBA - Stack Overflow
https://stackoverflow.com/questions/44551086/how-to-merge-similar-cells-in-excel-with-vba
WebJun 15, 2017 · Sub MergeSimilarCells () Dim lr As Long, lc As Long, i As Long, j As Long lr = Cells (Rows.Count, 1).End (xlUp).Row Application.DisplayAlerts = False For i = 1 To lr lc = Cells (i, Columns.Count).End (xlToLeft).Column For j = 1 To lc If Cells (i, j).MergeArea.Cells (1).Value = Cells (i, j + 1).MergeArea.Cells (1).Value Then 'Or Cells …
DA: 56 PA: 55 MOZ Rank: 22