Sub remove_rows()
Dim rownums, lastrow As Long
rownums = Application.InputBox("How Many Rows to Delete ?", "Enter No. of Rows to Remove", "0", , , , , 1)
lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row 'checks to find last rowcontaining data in ColA.
row_range = "A" & lastrow - rownums + 1 & ":" & "A" & lastrow
Range(row_range).EntireRow.Delete
End Sub