The following searches columns A:B. Adjust as needed:
Sub DeleteDups()
Dim cel As Range, EndRw As Long, FindThis As String, FoundAt As String, IsDup As Boolean
EndRw = Range("A" & Rows.Count).End(xlUp).Row
For Each cel In Range(Range("A1"), Range("B" & EndRw))
FindThis = cel.Value
If FindThis <> "" Then
IsDup = False
Do Until FoundAt = cel.Address
FoundAt = Columns("A:B").Find(what:=FindThis, after:=cel, lookat:=xlWhole).Address
If FoundAt <> cel.Address Then
IsDup = True
End If
If IsDup Then
Range(FoundAt).ClearContents
End If
Loop
End If
Next
Do Until EndRw = 0 ' Delete resulting blank rows
If Range("A" & EndRw).Value & Range("B" & EndRw).Value = "" Then
Rows(EndRw).Delete
End If
EndRw = EndRw - 1
Loop
End Sub
Bookmarks