Belleke
Well-Known Member
I have this code
This gives me a result like this:
A B C (empty)
5152613 0113
(empty row)
(empty row)
5144100 0104
How can I have this result?
A B C
5152613 0113 PM-NEW
5152613 0113 PM-USED
5152613 0113 PM-REBUILT
51441000104 PM-NEW
......
Code:
With Sheets ("d4E")
For lRow = Cells(Cells.Rows.Count, "A").End(xlUp).Row To 2 Step -1
If Cells(lRow, "A") <> Cells(lRow - 1, "A") And Cells(lRow, "C") <> "PM-REBUILT" Then Rows(lRow).EntireRow.Resize(2).Insert
Next lRow
End With
A B C (empty)
5152613 0113
(empty row)
(empty row)
5144100 0104
How can I have this result?
A B C
5152613 0113 PM-NEW
5152613 0113 PM-USED
5152613 0113 PM-REBUILT
51441000104 PM-NEW
......