Private Sub Worksheet_Change(ByVal Target As Range)
Dim aRow As Variant
If Target.Address(False, False) = "A2" Then
aRow = Target.Value
Rows(5).Resize(aRow).Insert
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim aRow As Variant, i As Long
If Target.Address(False, False) = "A2" Then
aRow = Target.Value
Rows(5).Resize(aRow).Insert
For i = 5 To 5 + aRow - 1
Range("A" & i).Value = i
Next i
End If
End Sub