Hello,
I am scanning barcode numbers straight into excel (Column C). Column B is numbered 1-5000, in order, but Column C will not be in any order (6,15,1,19,20). What I'd like to do is compare the cells that were recently populated with scanned barcodes to the ID numbers that exist in Column B, and then delete the rows that have the same number in Column B and C. I'm currently trying to manipulate, but am not wed to :
Sub delRows()
Dim i As Long
Application.ScreenUpdating = False
For i = UsedRange.Rows.Count To 1 Step -1
If Cells(i, 3).Value = Cells(i, 2).Value Then Cells(i, 2).EntireRow.Delete Shift:=xlUp
Next i
Application.ScreenUpdating = True
End Sub
Thanks!
Bookmarks