View Single Post
Old 07-26-2008, 08:53 AM   #8 (permalink)
abhorrent
Senior Member
 
abhorrent's Avatar
 
Join Date: Feb 2008
Location: Illinois
Posts: 789
iTrader: 4 / 100%
abhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond reputeabhorrent has a reputation beyond repute
This works.
Code:
Sub Find_YOUKEYWORD()
    Dim rng As Range
    Dim what As String
    what = "YOUKEYWORD"
    Do
        Set rng = ActiveSheet.UsedRange.Find(what)
        If rng Is Nothing Then
            Exit Do
        Else
            Rows(rng.Row).Delete
        End If
    Loop
End Sub
abhorrent is offline