Hum, bon excusé
Donc deux solutions, la première puisque tu as déjà le tableau, je l'ai juste passé en tableau structuré, et dans la dernière colonne tu tapes la formules =TEXTE([@Quantity]*[@Total];"# ##0.00 €"), si Excel demande d'écraser les autres lignes tu dis oui.
Seconde solution les calculs se font directement au remplissage de la ListBox, donc tu dois modifier le code comme ceci.
' ...
' ...
' ...
If LCase(Mid(sh.Cells(i, 2), x, p)) = Me.TextBox1 And Me.TextBox1 <> "" Then
With Me.ListBox1
.AddItem sh.Cells(i, 2)
.List(.ListCount - 1, 1) = sh.Cells(i, 3)
.List(.ListCount - 1, 2) = sh.Cells(i, 4)
.List(.ListCount - 1, 3) = sh.Cells(i, 5)
.List(.ListCount - 1, 4) = sh.Cells(i, 6)
.List(.ListCount - 1, 5) = sh.Cells(i, 7)
.List(.ListCount - 1, 6) = Format(sh.Cells(i, 8),"Currency")
.List(.ListCount - 1, 6) = Format(sh.Cells(i, 4) * sh.Cells(i, 7), "Currency")
End With
End If
' ...
' ...
' ...
Voili, voilou...