Dim Scan As Boolean
Private Sub TextBoxsaisie_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Cancel = Scan
Scan = False
End Sub
Private Sub TextBoxsaisie_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 13 Then
Scan = True
With Worksheets("INVENTAIRE")
If TextBoxsaisie <> "" Then 'si tu veux
For ligne = 4 To 500
If .Cells(ligne, 10) Like TextBoxsaisie Then
ListBox2.AddItem .Cells(ligne, 1)
Me.TextBoxsaisie.Text = ""
End If
Next
End If
End With
End If
End Sub