The code is working but it is taking more time to insert rows.
I normally insert more than 500 line items. It is updating one by one.
How can I speed up the macro?
Sub InsertMultipleRows()
Dim numRows As Integer
Dim counter As Integer
'Select the current row
ActiveSheet.Unprotect
Range("C23").Select
ActiveCell.EntireRow.Select
On Error GoTo Last
numRows = InputBox("Enter number of rows to insert", "Insert Rows")
'Keep on inserting rows until we reach the desired number
For counter = 1 To numRows
Selection.Insert Shift:=xlToDown, CopyOrigin:=xlFormatFromRightorAbove
Next counter
Last: Exit Sub
End Sub