BONJOUR
Dim v As Integer, Lr
ListBox1.Clear
Lr = Worksheets("Feuil1").Cells(Rows.Count, 1).End(xlUp).Row
For i = 1 To Lr
If Feuil1.Cells(i, 8).Value = ComboBox1.Value Then 'Feuil1.Cells(i, 1).Offset(0, 8) = ComboBox1.Text Then
ListBox1.AddItem Feuil1.Cells(i, 1).Value
ListBox1.List(v, 2) = Feuil1.Cells(i, 1).Offset(0, 1).Value
ListBox1.List(v, 3) = Feuil1.Cells(i, 1).Offset(0, 2).Value
ListBox1.List(v, 4) = Feuil1.Cells(i, 1).Offset(0, 3).Value
ListBox1.List(v, 5) = Feuil1.Cells(i, 1).Offset(0, 4).Value
ListBox1.List(v, 6) = Feuil1.Cells(i, 1).Offset(0, 5).Value
ListBox1.List(v, 7) = Feuil1.Cells(i, 1).Offset(0, 6).Value
ListBox1.List(v, 8) = Feuil1.Cells(i, 1).Offset(0, 7).Value
ListBox1.List(v, 9) = Feuil1.Cells(i, 1).Offset(0, 8).Value
'ListBox1.List(v, 10) = Feuil1.Cells(i, 1).Offset(0, 9).Value
v = v + 1
End If
Next
TextBox1.Value = v
TextBox2.Text = ""
For s = 0 To ListBox1.ListCount - 1
TextBox2.Text = Val(TextBox2) + Val(ListBox1.Column(7, s))
TextBox2.Value = Format(TextBox2.Value, "#0.00")
Next s
End Sub
Toujours reste un collone vide
avec
Feuil1.Cells(i, 8).Value = ComboBox1.Value
ca marche pas
merci de votre aide