Bonjour a tous,
J'ai un tableau excel (de la colonne A a H) que je voudrais trier selon la colonne A et B par odre croissant pour les deux colonnes.
J'ai fait un test avec l'enregistreur macro et j'ai bisouille un bout de code mais il y a un problem de synthaxe:
merci bcp pour votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 Worksheets("querry_results").Select Worksheets("querry_results").Columns("A:H").Select Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Key2:=Range("B2") _ , Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _ False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, DataOption2 _ :=xlSortNormal
Bonne journee
Partager