Sub F_Search()
Dim ws As Worksheet, Found As Range, rngNm As String
Dim myText As String, FirstAddress As String, thisLoc As String
Dim AddressStr As String, foundNum As Integer
PartNumber = InputBox("Enter Delivery Number", "Del Note Number", "")
If PartNumber = "" Then Exit Sub
For Each ws In ActiveWorkbook.Worksheets
With ws
Set Found = .UsedRange.Find(what:=PartNumber, LookIn:=xlFormulas, MatchCase:=False)
If Not Found Is Nothing Then
FirstAddress = Found.Address
Do
foundNum = foundNum + 1
rngNm = .name
AddressStr = AddressStr & .name & " " & Found.Address & vbCrLf
thisLoc = rngNm & " " & Found.Address
Sheets(rngNm).Select
Range(Found.Address(RowAbsolute:=False, _
ColumnAbsolute:=False)).Select
Set Found = .UsedRange.FindNext(Found)
Loop While Not Found Is Nothing And Found.Address <> FirstAddress
End If
End With
Next ws
If Len(AddressStr) Then
Else:
MsgBox "Unable to find " & PartNumber & " in this workbook.", vbExclamation
End If
Exit Sub
End Sub