I would suggest changing
to
to delete the entire row.
One thing to note, however, is that the values in column A are not identical when the values in column B are. (All of the other columns appear to have matching data in your sample.)
If you don't care about the data in the other columns, and just want to keep the first instance of any dupe in column B, then the code as provided will suffice. (I'd also recommend turning off ScreenUpdating at the beginning of the code, then turning it back on at the end. This will reduce flicker and actually make the macro run faster since it doesn't have to update the screen for every row it deletes.)
If the data in other columns does matter - and must all match in order for that row to be deleted - then another approach will be necessary.
Hope that helps!
Bookmarks