Deleting 3 rows when current row number is unknown

J

Joe

Hello,
How do I delete the the next 3 rows of data when the row
number varies from worksheet to worksheet.
Example: My good data goes from Row 1 to Row 200.
I need to delete Rows 201 thru 203.
Example: My good data goes from Row 1 to Row 320.
I need to delete Rows 321 thru 323.

In other words the rows of good data vary from worksheet
to worksheet.

Thank you in advance.
Joe
 
G

Guest

Try this:
Where x is the last good Row numbe
Rows(x).Offset(1).Resize(3).EntireRow.Delete Shift:=xlShiftUp
 

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

Top