Are they listed in lines?
Sub RemoveDuplicateLines ()
Dim iRows, iDuplicates
iRows = 170
iDuplicates = 0
For i = 1 To iRows
strCurrent = Sheet1.Range("A" & i)
For n = i + 1 To iRows
strNext = Sheet1.Range("A" & n)
If strCurrent = strNext Then
Sheet1.Range("A" & n).Delete
iRows = iRows - 1
iDuplicates = iDuplicates + 1
End If
Next n
Next i
MsgBox iDuplicates & " duplicate lines removed.", vbInformation
End Sub
Private Sub Workbook_Open()
Dim iRows, iDuplicates
iRows = 170
iDuplicates = 0
For i = 1 To iRows
strCurrent = Sheet1.Range("A" & i)
For n = i + 1 To iRows
strNext = Sheet1.Range("A" & n)
If strCurrent = strNext Then
Sheet1.Range("A" & n).Delete
iRows = iRows - 1
iDuplicates = iDuplicates + 1
End If
Next n
Next i
MsgBox iDuplicates & " duplicate lines removed.", vbInformation
End Sub
Or just use filter, advanced filter and ask it to return unique values.
Job done.