Professional Documents
Culture Documents
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