Hi
Sub DeleteEmAll()
range("A1").select
Do
if activecell.value = "zzz" then
Rows(activecel.row).Select
Selection.Delete Shift:=xlUp
else
activecell.offset(1,0).select
loop while activecell.row <26<br>end sub
HTH
Jacob
If your machine has problems with the do ... while commands, try this. Please note it will go to the last row in the column. To limit this, change the "To" value from lastrow to 25.
Private Sub DeleteZZZ()
Range("A1").Select
Selection.End(xlDown).Select
Rows(ActiveCell.Row).Select
Dim lastrow
lastrow = (ActiveCell.Row)
Range("a1").Select
For x = 1 To lastrow
If ActiveCell.Value = "zzz" Then
Rows(ActiveCell.Row).Select
Selection.Delete Shift:=xlUp
Else
ActiveCell.Offset(1, 0).Select
End If
Next x
End Sub