Hello,
I want to delete in a table every row except the first one. If i do it with a macro i get:
Range("M3").Select
Range(Selection, Selection.End(xlToLeft)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ListObject.ListRows(2).Delete
Selection.ListObject.ListRows(2).Delete
Selection.ListObject.ListRows(2).Delete
Selection.ListObject.ListRows(2).Delete
And Selection.ListObject.ListRows(2).Delete goes on for every line. How can i do this more efficient?
I want to delete in a table every row except the first one. If i do it with a macro i get:
Range("M3").Select
Range(Selection, Selection.End(xlToLeft)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ListObject.ListRows(2).Delete
Selection.ListObject.ListRows(2).Delete
Selection.ListObject.ListRows(2).Delete
Selection.ListObject.ListRows(2).Delete
And Selection.ListObject.ListRows(2).Delete goes on for every line. How can i do this more efficient?