hi
it all got highlighted
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 9/14/2019 5:43:33 AM EDT
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub
Application.EnableEvents = False
If Target.Column = 2 And IsNumeric(Target.Value) And Target.Value > 1 Then Rows(Target.Row).Offset(1).Resize(Target.Value - 1).Insert Shift:=xlDown
Application.EnableEvents = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 9/14/2019 6:57:33 AM EDT
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub
Dim i As Long
Application.EnableEvents = False
If Target.Column = 2 And IsNumeric(Target.Value) And Target.Value > 1 Then
With ActiveSheet.ListObjects("Table1")
For i = 1 To Target.Value - 1
.ListRows.Add (Target.Row)
Next
End With
Application.EnableEvents = True
MsgBox "Rows added to Table"
End If
End Sub