Private Sub TextBox1_Change()
Dim idx As Variant: idx = CVErr(xlErrNA)
If TextBox1 <> "" Then idx = Application.Match(TextBox1.Text & "*", Range(Cells(10, 1), Cells(Rows.Count, 1).End(xlUp)), 0)
If Not IsError(idx) Then
ThisWorkbook.Names.Add "Position_Trouvée", 9 + idx
Application.Goto Cells(9 + idx, 1), True
Else
ThisWorkbook.Names.Add "Position_Trouvée", 0
Application.Goto Cells(10, 1), True
End If
End Sub