Hi,
I think this is straightforward, how do I stop the following code when it gets to row 5
Thanks
I think this is straightforward, how do I stop the following code when it gets to row 5
VBA Code:
Sub InsertBlankRows2()
Dim LR As Long, i As Long
LR = Range("J" & Rows.Count).End(xlUp).Row
For i = LR To 2 Step -1
If Range("J" & i).Value <> Range("J" & i - 1).Value Then Rows(i).Resize(3).EntireRow.Insert
Next i
End Sub
Thanks