Dim flag As Boolean 'mémorise la variable
Private Sub TextBoxsaisie_AfterUpdate()
flag = True 'bloque
Worksheets("INVENTAIRE").Activate
If TextBoxsaisie <> "" Then
For ligne = 4 To 500
If Cells(ligne, 10) Like TextBoxsaisie Then
ListBox2.AddItem Cells(ligne, 1)
End If
Next
End If
Me.TextBoxsaisie.Text = ""
flag = False 'débloque
End Sub
Private Sub TextBoxsaisie_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Cancel = flag
End Sub