Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub BTrierListe_Click() trieListeBox (ListeProduit1) End Sub Function trieListeBox(ByRef listeBox As MSForms.ListBox) Dim i As Integer, j As Integer, Temp As String For i = 0 To listeBox.ListCount - 1 For j = i + 1 To listeBox.ListCount If listeBox.List(i) > listeBox.List(j) Then Temp = ListBox1.List(j) listeBox.List(j) = listeBox.List(i) listeBox.List(i) = Temp End If Next j Next i End Function