Lacampeona
New Member
- Joined
- Mar 31, 2024
- Messages
- 7
- Office Version
- 2016
- Platform
- Windows
Hello Excel experts
I am new here
I have one question if that is possible
I have a range of cells that i want to copy after some cells bellow
A2:D2
see the attachement
I would like to create some input box to the user
like bellow
but in my case it copies entire row i want the selection of cells
thank you in advance excel experts
I am new here
I have one question if that is possible
I have a range of cells that i want to copy after some cells bellow
A2:D2
see the attachement
I would like to create some input box to the user
like bellow
but in my case it copies entire row i want the selection of cells
thank you in advance excel experts
Dim iRow As Long
Dim iCount As Long
Dim i As Long
iCount = InputBox(Prompt:="How many rows you want to add?")
iRow = InputBox _
(Prompt:="After which row you want to add new rows? (Enter the row number")
For i = 1 To iCount
Rows(iRow).EntireRow.Insert
Next i