Try this on a back up copy and see if it meets your needs. Reference to Sheet1 is to the sheet code name - change it as needed.
This assumes values in first column (A) are always 5-digits.
Option Explicit
Sub DeleteRows()
Dim vNum As Variant, vUpper As Long
Dim lastrow As Long
Dim C As Range
vNum = Application.InputBox("Enter the two-number combination", Type:=2)
If Len(vNum) > 2 Then
MsgBox ("More than two digits were entered"), vbExclamation
Exit Sub
End If
vNum = CLng(vNum) * 1000
vUpper = vNum + 1 * 1000
Application.ScreenUpdating = False
With Sheet1
lastrow = .Cells(Rows.Count, "A").End(xlUp).Row
.AutoFilterMode = False
.Range("A1:B" & lastrow).AutoFilter Field:=1, Criteria1:=">=" & vNum, Operator:=xlAnd, Criteria2:="<" & vUpper
.Range("A1:B" & lastrow).Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
.AutoFilterMode = False
lastrow = .Cells(Rows.Count, "A").End(xlUp).Row
For Each C In .Range("A2:A" & lastrow)
C.Value = Mid(C.Value, 3, Len(C) - 2)
Next C
End With
Application.ScreenUpdating = True
End Sub
Bookmarks