default_name
Board Regular
- Joined
- May 16, 2018
- Messages
- 180
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
I have the following code:
Is there a way to simplify this code in one statement, instead of having to run through the same thing 12 times?
Thanks
Code:
Selection.End(xlDown).Select
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Is there a way to simplify this code in one statement, instead of having to run through the same thing 12 times?
Thanks