Row Selection for deleting

  • Thread starter Thread starter Murph
  • Start date Start date
M

Murph

Hi All
I have picked up some great code and assistance from this group. Thanks to
all the contributors.
I have code finding a particular criteria I want to reamove from a
spreadsheet but I also want to delet the next 3 rows after the instance.
Can someone add the correct code to the row with Apples in it followed by
the next 3.

Application.ScreenUpdating = False
Do
Set rng = Columns(7).Find("Apples")
If rng Is Nothing Then Exit Do
rng.EntireRow.delete
Loop

Thanks once again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top