Private Sub cherche_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
'If KeyCode <> 13 Then Exit Sub
x = 0
With Me
.mylist.Clear
If .cherche = "" Then Exit Sub
StrSearch = UCase(.cherche.Text)'Ici
End With
With Sheets("Commandes " & Me.ComboBox1.Text)
DerLgn = .Cells(.Rows.Count, 1).End(xlUp).Row
DerCol = .Cells(3, .Columns.Count).End(xlToLeft).Column
With .Range(.Cells(4, 1), .Cells(DerLgn, DerCol))
Tbl_BDD = .Value
End With
End With
For Lgn = 1 To UBound(Tbl_BDD, 1)
If UCase(Tbl_BDD(Lgn, 3)) Like "*" & StrSearch & "*" Then 'et Ici'
x = x + 1
ReDim Preserve Tbl_Recup(13, x)
For Col = 1 To 12
Tbl_Recup(Col, x) = Tbl_BDD(Lgn, Col)
Next Col
Tbl_Recup(13, x) = 3 + Lgn
End If
Next Lgn
With Me
With .mylist
.Clear
.Column = Tbl_Recup
End With
End With
End Sub