copy last 5 rows then to paste to A2 and finally to delete
rows starting from row7th, plse write vba.
copy last 5 rows then to paste to A2 and finally to delete
rows starting from row7th, plse write vba.
[VBA]Sub a()
LR = Cells(Rows.Count, "A").End(xlUp).Row
Range("A2:A" & LR - 5).EntireRow.Delete
End Sub[/VBA]
Originally Posted by patel
sloved with thanks
To mark your thread solved simply click on the dropdown Thread Tools and select the correct option. I have done this for you this time
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link