Re : Rowsource
voici le code complet
Private Sub BTN_Plus_Click()
Dim Ligne_Config(2) As Variant
If LST_Produits.ListIndex = -1 Then Exit Sub
Ligne_Config(0) = Me.LST_Produits.List(, 0)
Ligne_Config(1) = Application.InputBox("quantité :", _
"Produit : " & Ligne_Config(0), Type:=1)
If Ligne_Config(1) = False Then
MsgBox "ajout du produit" & Ligne_Config(0) & "annulé.", _
vbCritical, "ajout produit"
Exit Sub
End If
Ligne_Config(2) = Me.LST_Produits.List(, 0)
Me.TXT_Mt_Produits.Value = Me.TXT_Mt_Produits.Value + Ligne_Config(1) * Ligne_Config(2)
If CHK_Maintenance.Value = True Then Me.TXT_MT_Maintenance.Value = _
Me.TXT_Mt_Produits.Value * Range("Maintenance").Value
Me.TXT_Mt_Total.Value = CDbl(Me.TXT_Mt_Produits.Value) + _
CDbl(Me.TXT_MT_Maintenance.Value)
Me.TXT_Mt_Remise.Value = Format(Me.TXT_Mt_Total.Value * _
(1 - Me.TXT_Remise.Value / 100), "0")
LST_Config.AddItem
For i = 0 To 2
Me.LST_Config.List(Me.LST_Config.ListCount - 1, i) = Ligne_Config(i)
Next i
End Sub