You are on page 1of 1

51 Ready to Use Macros 22 | P a g e

10. Insert Rows in between each row containing data, based on user Input
Sub InsertNRows()
Range(“A3”).Select
Dim d, e As Integer
e = Val(InputBox(“Enter the number of Rows to be inserted”))
Do Until ActiveCell.Value = “”
For d = 1 To e
Selection.EntireRow.Insert
Next d
ActiveCell.Offset(e + 1, 0).Select
Loop
End Sub

xlncad.com Visit XL n CAD’s Youtube Channel

You might also like