There is a working search code for a variety of Excel files, with the full address displayed in the form of a list of hyperlinks. How to implement the search not only in the same level, but also in ALL the subfolders nested, with the option of either turning off the deep search or warning that it is turned on (I think you can hang the computer tightly if you choose too much space).
Sub ПОИСК() Dim folder_$, file_$, s$ Dim rw& Dim sh '---------------------------' rw = 4 With ThisWorkbook.Sheets(1) .UsedRange.Offset(3, 0).EntireRow.Delete s = .Cells(2, 3).Value End With If s = "" Then MsgBox "Не заполненно поле поиска!" Exit Sub End If With Application With .FileDialog(msoFileDialogFolderPicker) If .Show = False Then Exit Sub folder_ = .SelectedItems(1) End With folder_ = folder_ & IIf(Right(folder_, 1) = .PathSeparator, "", .PathSeparator) .ScreenUpdating = False End With file_ = Dir(folder_ & "*.xls*") Do While file_ <> "" DoEvents If file_ <> ThisWorkbook.Name Then Workbooks.Open folder_ & file_ With ActiveWorkbook For Each sh In .Sheets Set c = sh.Cells.Find(What:=s, After:=sh.Cells(1, 1), LookIn:=xlValues, LookAt:=xlPart) If Not c Is Nothing Then With ThisWorkbook.Sheets(1) .Cells(rw, 1) = folder_ & ActiveWorkbook.Name .Hyperlinks.Add Anchor:=.Cells(rw, 1), Address:=folder_ & ActiveWorkbook.Name, SubAddress:=c.Address End With rw = rw + 1 Exit For End If Next .Close False End With End If file_ = Dir Loop Application.ScreenUpdating = True Beep MsgBox "Готово!" End Sub Sub Макрос2() Set c = Cells.Find(What:="жжж", After:=ActiveCell, LookIn:=xlValues, LookAt:= _ xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _ , SearchFormat:=False) End Sub