I'm currently using the following code to delete out any records that duplicate themselves in the A Column. I have lists that are thousands of rows long and when it runs it takes much longer than I would like. Was hoping there was a solution out there that was more efficient.
Using Excel 2003
** Sometimes I use multiple pieces of criteria (various columns) to delete dupes. This code is based solely on the A Coulmn.
Thanks again
Using Excel 2003
** Sometimes I use multiple pieces of criteria (various columns) to delete dupes. This code is based solely on the A Coulmn.
Thanks again
Code:
Sub DupeDeleter()
x = ActiveCell.Row
y = x + 1
Do While Cells(x, 1).Value <> ""
Do While Cells(y, 1).Value <> ""
If (Cells(x, 1).Value = Cells(y, 1).Value) Then
Cells(y, 1).EntireRow.Delete
Else
y = y + 1
End If
Loop
x = x + 1
y = x + 1
Loop
End Sub