SanjayGMusafir
Well-known Member
- Joined
- Sep 7, 2018
- Messages
- 1,503
- Office Version
- 2021
- Platform
- MacOS
I have a worksheet with many tables in it. In that sheet there is a table "EBank2".
I need to add multiple rows in this table based on the value in an input box.
Further, If it may help me add rows below a specific active cell, would be great.
I have tried many codes but nothing has worked for me.
Please help.
Thanks a lot
I need to add multiple rows in this table based on the value in an input box.
Further, If it may help me add rows below a specific active cell, would be great.
I have tried many codes but nothing has worked for me.
Please help.
Thanks a lot
Rich (BB code):
Sub InsertRows()
Dim x As Integer
x = Application.InputBox("Number of Rows", "Number of Rows", Type:=1)
Range(ActiveCell, ActiveCell.Offset(x - 1, 0)).EntireRow.Insert Shift:=xlDown
End Sub