Bonjour,
Code pour l'UserForm pour remplir le ComboBox :
Private Sub UserForm_Initialize()
Dim Plage As Range
Dim T
With Worksheets("Stock"): Set Plage = .Range(.Cells(6, 3), .Cells(.Rows.Count, 3).End(xlUp)): End With
T = Plage
Cmb_désignation.List = T
End Sub
Code pour le ComboBox :
Private Sub Cmb_désignation_Click()
With Cmb_désignation
Me.Txt_numéro.Value = Cells(.ListIndex + 6, 2).Value
Me.Txt_désignation.Value = Cells(.ListIndex + 6, 3).Value
Me.Txt_début.Value = Cells(.ListIndex + 6, 4).Value
Me.Txt_min.Value = Cells(.ListIndex + 6, 8).Value
Me.Txt_max.Value = Cells(.ListIndex + 6, 9).Value
Me.Chemin.Value = Cells(.ListIndex + 6, 11).Value
End With
End Sub