Not sure if this will help,
but if you create a sheet called search results this code will allow you to enter the reference number in format xxxxx/xxx and then finds any results with it and stores it in the search results sheet, from columns A to E.
Sub Search()
Application.ScreenUpdating = False
Dim row_count, myCode As String
myCode = InputBox("Enter Reference Number xxxxx/xxx:", "Search")
With Sheets("Search Results")
.Rows(2 & ":" & .Rows.Count).Delete
End With
For row_count = 1 To Range("A" & Rows.Count).End(xlUp).Row
If InStr(1, Range("A" & row_count), myCode) > 0 Then
Range("A" & row_count & ":F" & row_count).Copy _
Sheets("Search Results").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
Next
Application.ScreenUpdating = True
Sheets("Search Results").Activate
End Sub
This bit of code clears the previous results you've found. If you don't want to do that you can get rid of it.
With Sheets("Search Results")
.Rows(2 & ":" & .Rows.Count).Delete
End With
Bookmarks