This will do it for your Numbers, if you want to do the check for Text you need to change the Dim of the variable lookfor from "Integer" to "String", without the quotes of course.
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 03/04/2007 by A C Osborn
'
' Keyboard Shortcut: Ctrl+a
'
Dim count As Integer, lookfor As Integer, lastrow As Integer
lastrow = Cells(Rows.count, "A").End(xlUp).Row
lookfor = Cells(lastrow, 1)
For count = (lastrow - 1) To 1 Step -1
MsgBox lookfor & " - " & Cells(count, 1)
If Cells(count, 1) = lookfor Then
Cells(count, 1).EntireRow.Delete xlShiftUp
Else
lookfor = Cells(count, 1)
'lastrow = lastrow - 1
End If
Next
End Sub
You do not actually need the msgbox, it is only there to show you the values that are being checked in each step. You can either delete it or REM it out by placing a "'" at the start of that line.