Sub add_rows()
'Modified 6/11/18 2:00 PM EDT
Application.ScreenUpdating = False
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Dim accnum As String
accnum = InputBox("Enter account number")
For i = Lastrow To 2 Step -1
If Cells(i, 1).Value = accnum Then Rows(i).Resize(8).Insert
Next
Application.ScreenUpdating = True
End Sub
Try this:
Code:Sub add_rows() 'Modified 6/11/18 2:00 PM EDT Application.ScreenUpdating = False Dim Lastrow As Long Lastrow = Cells(Rows.Count, "A").End(xlUp).Row Dim accnum As String accnum = InputBox("Enter account number") For i = Lastrow To 2 Step -1 If Cells(i, 1).Value = accnum Then Rows(i).Resize(8).Insert Next Application.ScreenUpdating = True End Sub