You need to sort the range (makes it run faster as you need shorter loops)
Then use VB code to search.
Sub Duplicates()
For x = 1 To 8
For y = x + 1 To 8
If Cells(x, 1).Value = Cells(y, 1).Value Then
rtnVal = MsgBox("Duplicate at row " & Str

, vbCritical + vbOKOnly, "Error!!")
End If
Next y
Next x
End Sub
HTH