1 2 3 4 5 6 7 8 9 10 11 12 13
| Tableau = Sheets("1").Cells(11, i) & "-" & Cells(12, i).Value
'Tri le contenu du tableau par ordre croissant.
If Sheets("1").Cells(11, i) & "-" & Cells(12, i).Value < Sheets("1").Cells(11, i + 1) & "-" & Cells(12, i + 1).Value Then
TempTab = Sheets("1").Cells(11, i) & "-" & Cells(12, i).Value
Sheets("1").Cells(11, i) & "-" & Cells(12, i).Value = (Sheets("1").Cells(11, i + 1) & "-" & Cells(12, i + 1).Value)
(Sheets("1").Cells(11, i + 1) & "-" & Cells(12, i + 1).Value) = TempTab
End If
ListeBE.AddItem (Tableau) |
Partager