XL 2019 concours boules / compatibilite macro tri qui fonctionne avec excel 2019 et pas sur 2007 ou 2013

  • Initiateur de la discussion Initiateur de la discussion berru76
  • Date de début Date de début

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

berru76

XLDnaute Occasionnel
Bonjour
cet macro tri fonctionne bien sur toute les feuilles du dossier chez moi avec excel 2019
j'ai testé le concours sur autre ordi avec des version excel 2007 ou excel 2013 la macro tri bug (erreur 438)
au club on a des PC avec ces config
modèle sur fichier joint
si vous avez une solution merci

Sub Tri()
'
' Tri Macro
'

'
Range("AB3:AD" & Range("AB" & Rows.Count).End(xlUp).Row).Select
Selection.Copy
Range("BO3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
ActiveSheet.Sort.SortFields.Clear
ActiveSheet.Sort.SortFields.Add2 Key:=Range("BO4:BO" & Range("BO" & Rows.Count).End(xlUp).Row), _
SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
'ActiveSheet.Sort.SortFields.Add2 Key:=Range("BP4:BP" & Range("BP" & Rows.Count).End(xlUp).Row), _
'SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
ActiveSheet.Sort.SortFields.Add2 Key:=Range("BP4:BP" & Range("BP" & Rows.Count).End(xlUp).Row), _
SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
With ActiveSheet.Sort
.SetRange Range("BO3:BQ" & Range("BO" & Rows.Count).End(xlUp).Row)
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub

modèle sur fichier joint
si vous avez une solution merci
 

Pièces jointes

- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
17
Affichages
932
Réponses
6
Affichages
949
Réponses
11
Affichages
726
Retour