Sub Cherche_Mots_Classeur()
'JB
'If Me.TextBox1 = "" Then Exit Sub
Application.DisplayAlerts = False
On Error Resume Next
Sheets("Temp").Delete
On Error GoTo 0
Sheets.Add after:=Sheets(Sheets.Count)
ActiveSheet.Name = "Temp"
'[A1] = Me.TextBox1
NAT = InputBox("Nom à trouver dans le classeur?")
[A1] = NAT
ligne = 2
For i = 1 To Sheets.Count - 1
With Sheets(i).Cells
'If IsDate(Me.TextBox1) Then
' Set c = .Find(CDate(Me.TextBox1), LookIn:=xlValues, LookAt:=xlPart)
'Else
' Set c = .Find(Me.TextBox1, LookIn:=xlValues, LookAt:=xlPart)
'End If
Set c = .Find(NAT, LookIn:=xlValues, LookAt:=xlPart)
If Not c Is Nothing Then
premier = c.Address
Do
temp = [A1]
Sheets("temp").Hyperlinks.Add Anchor:=Sheets("temp").Cells(ligne, 1), _
Address:="", SubAddress:="'" & Sheets(i).Name & "'" & "!" & c.Address, TextToDisplay:=temp 'Sheets(i).Name
Cells(ligne, 2) = Sheets(i).Name
Cells(ligne, 3) = c.Address
ligne = ligne + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> premier
End If
End With
Next i
End Sub