Should see an increase with this
Sub UniqueOrder2()
Sheets("Sheet1").Select
Dim LR As Long
Dim lngRow As Long
Dim strLastID As String
Dim lngLastRow As Long
Application.ScreenUpdating = False
Application.EnableEvents = False
LR = Range("A" & Rows.Count).End(xlUp).Row
strLastID = Cells(LR, 1).Value
lngLastRow = LR - 1
For lngRow = LR To 1 Step -1
If Cells(lngRow, 1).Value <> strLastID Then
If lngLastRow - lngRow > 0 Then
Range(Cells(lngRow + 1, 1), Cells(lngLastRow, 1)).EntireRow.Delete shift:=xlUp
End If
strLastID = Cells(lngRow, 1)
lngLastRow = lngRow - 1
End If
Next
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
Bookmarks