Currently I am using this code to delete rows from the bottom up:
Sub Deleterows()
With Sheet8
.Rows(9).EntireRow.Delete
.Rows(5).EntireRow.Delete
.Rows(1).EntireRow.Delete
End With
End Sub
I have quite a lot of rows to delete. It will always be the same rows that need deleting.
I want to know if there is a better way to delete my 50 specific rows without writing .Rows(x).EntireRow.Delete
50 times.
For example if row number in [9,5,1] then delete
. This would also be easier to just add a row number into without repeating a line.
This is a few lines from the data extract. Note it has been transposed.