Geely
XLDnaute Occasionnel
Bonjour le Forum
j'ai une petite application qui fonctionne sous Excel 2007, mais sous 2003 il y a une erreur de compilation Variable
non définie.
' Trier
ActiveWorkbook.Worksheets("importer").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("importer").Sort.SortFields.Add Key:=Range( _
"T5:T489"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("importer").Sort
.SetRange Range("A4:BB489")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Comment modifier ce code pour que le tri se fasse également avec une version Excel 2003
Geely
j'ai une petite application qui fonctionne sous Excel 2007, mais sous 2003 il y a une erreur de compilation Variable
non définie.
' Trier
ActiveWorkbook.Worksheets("importer").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("importer").Sort.SortFields.Add Key:=Range( _
"T5:T489"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("importer").Sort
.SetRange Range("A4:BB489")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Comment modifier ce code pour que le tri se fasse également avec une version Excel 2003
Geely
Dernière édition: