Sub FileFindInSubfolders()
Dim StrFile As String, objFSO, destRow As Long
Dim mainFolder, mySubFolder
mFolder = Range("B2").Value ' folder
fname = Range("B3").Value ' file name
Set objFSO = CreateObject("Scripting.FileSystemObject")
mFolder = "D:\DATI\prova\"
Set mainFolder = objFSO.GetFolder(mFolder)
StrFile = Dir(mFolder & "\" & fname)
If StrFile <> "" Then
MsgBox mFolder & "\" & StrFile & " found"
Else
For Each mySubFolder In mainFolder.SubFolders
StrFile = Dir(mySubFolder & "\" & fname)
If StrFile <> "" Then
MsgBox mySubFolder & "\" & StrFile & " found"
Exit For
End If
Next
End If
End Sub