1 2 3 4 5 6
| BDD_Forecast.Sort.SortFields.Add Key:=Range(Cells(2, 28), Cells(ligne_BDD, 28)), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal 'Quinzaine de livraison
If (BDD_Forecast.Cells(i, 28).Value = 1) Then 'temps de mh standard ascendant 1ère quinzaine et descandant 2ème quinzaine
BDD_Forecast.Sort.SortFields.Add Key:=Range(Cells(2, 14), Cells(ligne_BDD, 14)), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
Else
BDD_Forecast.Sort.SortFields.Add Key:=Range(Cells(2, 14), Cells(ligne_BDD, 14)), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
End If |
Partager