Private Sub Worksheet_Change(ByVal Target As Range)
Stop
If Target.CountLarge > 1 Then Exit Sub
If Target.Value < 2 Then Exit Sub
On Error GoTo Xit
Application.EnableEvents = False
If Target.Column = 2 And IsNumeric(Target.Value) Then Rows(Target.Row).Offset(1).Resize(Target.Value - 1).Insert
Xit:
If Err.Number <> 0 Then MsgBox "Oops"
Application.EnableEvents = True
End Sub
If Target.Column = 2 And IsNumeric(Target.Value) Then [COLOR=#ff0000]Rows(Target.Row).Offset(1).Resize(Target.Value - 1).Insert[/COLOR]