1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Private Sub Trie_par_date_Click()
Application.EnableEvents = False
Application.ScreenUpdating = False
With ThisWorkbook.Worksheets("Bilan")
.Sort.SortFields.Clear
.Sort.SortFields.Add Key:=.Range("C9"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
.Sort.SetRange .Range("C8:Q5000")
With .Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End With
Application.EnableEvents = True
End Sub |