ResellerRatings Store Ratings - View Single Post - Excel Macro help
View Single Post
Old 10-02-2003, 04:15 PM   #8 (permalink)
Epidemic
Registered User
 
Epidemic's Avatar
 
Join Date: Mar 2002
Posts: 400
Epidemic is on a distinguished road
Quote:
Originally posted by jjst34
Thanks.. This is close.. I need it to delete the following 9 rows also, not just the one w/ "hello" and also, how do I make it loop? It only finds one "hello" then I have to run it again.. Thanks a lot.. Any idea on the SUM question? Thanks guys!
you can put that directly in a loop as far as I am concerned

Perhaps a do while loop.

Code:
Sub biteme()
    On Error GoTo done
    Do While a < 1000
    Cells(1, 1).EntireColumn.Find("hello", LookIn:=xlWhole, Lookat:=xlWhole).Select
    Range(ActiveCell(), ActiveCell.Offset(-9, 0)).Select
    Selection.EntireRow.Delete
    a = 1 'this is just a bogus variable
    Loop
done:
End Sub

Epidemic is offline   Reply With Quote