Re : PB combobox
Bonjour tout le monde,
Voici ce que quelqu'un m'a envoyé (à adapter pour ton code) :
Private Sub ComboBox1_Change()
Dim tabtemp As Variant
Dim O As Integer
With Worksheets("Feuil1")
O = .Range("a15000").End(xlUp).Row 'tout ce qui se trouve dans la colonne A
tabtemp = .Range("A2:aw" & O).Value 'prend les valeurs qui se trouvent dans les colonnes A à AW
End With
For O = 1 To UBound(tabtemp, 1)
If tabtemp(O, 1) = CStr(Me.ComboBox1.Value) Then 'lorsque ton combobox sera égale à ta valeur dans la colonne A
If tabtemp(O, 11) = True Then
Controls("ListBox8").AddItem Format(tabtemp(O, 12), "# ##0.00 $")
UsfInventaire.TextBox1.BackColor = RGB(204, 255, 255)
CheckBox9.Value = True
OptionButton1.Value = True
Else
If tabtemp(O, 14) = True Then
Controls("ListBox8").AddItem Format(tabtemp(O, 15), "# ##0.00 $")
UsfInventaire.TextBox4.BackColor = RGB(204, 255, 255)
CheckBox2.Value = True
OptionButton1.Value = True
Else
If tabtemp(O, 17) = True Then
Controls("ListBox8").AddItem Format(tabtemp(O, 18), "# ##0.00 $")
UsfInventaire.TextBox13.BackColor = RGB(204, 255, 255)
CheckBox11.Value = True
OptionButton1.Value = True
End If
End If
End If
Cela pourra peut-être t'aider.