Hello,
I need to convert invoices including a tons of items to Excel.
When I copy the text and paste it into Excel there are several rows which are the footer. These are always the same 6 rows with a blank row in front of them.
When I have 20 pages it's quite timeconsuming to delete these groups one by one.
That would be great if I could do this by pressing a button.
I've found this code but this only deletes the rows where the cell in column A is blank.
Could you pls help me with a code that deletes the next 6 rows as well?
Thank you for you help in advance,
Balazs
I need to convert invoices including a tons of items to Excel.
When I copy the text and paste it into Excel there are several rows which are the footer. These are always the same 6 rows with a blank row in front of them.
When I have 20 pages it's quite timeconsuming to delete these groups one by one.
That would be great if I could do this by pressing a button.
I've found this code but this only deletes the rows where the cell in column A is blank.
Code:
Private Sub CommandButton1_Click()
On Error Resume Next
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
Could you pls help me with a code that deletes the next 6 rows as well?
Thank you for you help in advance,
Balazs
Last edited: