Sub Recherche_données()
Dim LaFeuille As String, Ladate As Range, Ligne As Long, dl As Integer, plage As Range
LaFeuille = Right(TextBox1, 4)
If FeuilleExiste(LaFeuille) = True Then
With Sheets(LaFeuille)
dl = .Range("A" & Rows.Count).End(xlUp).Row
Set plage = .Range("A1:A" & dl)
Set Ladate = Rng.Cells.Find(What:=CDate(TextBox1.Text), LookIn:=xlFormulas, LookAt:=xlWhole) 'bug objet requis
If Ladate Is Nothing Then
Me.Label1.Caption = "la date " & TextBox1 & " non trouvée sur la feuille " & LaFeuille
Else
Me.Label1.Caption = TextBox1 & " se trouve sur la feuille " & LaFeuille & " en " & Ladate.Address
End If
End With
Else
Me.Label1.Caption = " la feuille " & LaFeuille & " n'existe pas!"
Exit Sub
End If
'*********************************************
Set Ladate = Nothing
Set plage = Nothing
End Sub