Public ordre
Sub Tri_Ligne1_Ascendant_Descendant()
'Tri Ascendant_Descendant
'MsgBox Rows.Count
'[D1].Select
Derl = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
'If Derl <= 4 Then Exit Sub
ActiveWorkbook.Worksheets(ActiveSheet.Name).Sort.SortFields.Clear
If ordre = 0 Then ActiveWorkbook.Worksheets(ActiveSheet.Name).Sort.SortFields.Add Key:=Range(ActiveCell.Address) _
, SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortTextAsNumbers: ordre = ordre + 1: GoTo suite
If ordre = 1 Then ActiveWorkbook.Worksheets(ActiveSheet.Name).Sort.SortFields.Add Key:=Range(ActiveCell.Address) _
, SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
xlSortTextAsNumbers: ordre = ordre + 1: GoTo suite
suite:
With ActiveWorkbook.Worksheets(ActiveSheet.Name).Sort
.SetRange Range("A1:F" & Derl)
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
If ordre = 2 Then ordre = 0
End Sub