A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
try this..
(make a copy before...)
Sub deletion2()
Dim Lastrow As Long, X As Long
Dim Response As Long
Lastrow = Cells(Cells.Rows.Count, "B").End(xlUp).Row
Response = Application.InputBox("Enter Document Reference Number", "Document Reference", Type:=1)
If Response = 0 Then MsgBox prompt:="You Pressed Cancel", Buttons:=vbInformation + vbOKOnly, Title:="Cancel": Exit Sub
For X = Lastrow To 6 Step -1
If (Cells(X, 2)) = Response Then
Cells(X, 1).Resize(, 11).Delete Shift:=xlUp
End If
Next
End Sub