Bonjour thebenoit57,
Oui, il s'agit d'une listbox dans un Userform.
J'ai mis en place le code suivant qui fonctionne :
k = 0
Me.ListBox2.Clear
With Me.ListBox2
.ColumnCount = 5
.ColumnWidths = "20;50;110;100;25"
For I = 3 To F3.[G65000].End(xlUp).Row
If F3.Cells(I, 7) Like nom_prestataire Then
Me.ListBox2.AddItem
Me.ListBox2.List(k, 0) = F3.Cells(I, 2)
Me.ListBox2.List(k, 1) = F3.Cells(I, 3)
Me.ListBox2.List(k, 2) = F3.Cells(I, 4)
Me.ListBox2.List(k, 3) = F3.Cells(I, 5)
Me.ListBox2.List(k, 4) = F3.Cells(I, 6)
k = k + 1
End If
Next I
End With
Pour la somme, j'ai fait un filtre et j'ai récupéré le sous-total.
Merci quand même.