![]() |
Deleting 3 rows when current row number is unknown
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 |
Deleting 3 rows when current row number is unknown
Try this:
Where x is the last good Row numbe Rows(x).Offset(1).Resize(3).EntireRow.Delete Shift:=xlShiftUp |
All times are GMT +1. The time now is 02:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com