Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Set titre = [A2:H2] 'ajout de colonnes
DL = Cells(65500, Target.Column).End(xlUp).Row
Set Plage = Range(Cells(3, Target.Column), Cells(DL, Target.Column))
If Not Intersect(titre, Target) Is Nothing And Target <> "" Then
OrdreTri = IIf(Target.Interior.ColorIndex = 3, xlDescending, xlAscending)
Plage.Sort Key1:=Cells(1, Target.Column), Order1:=OrdreTri, Header:=xlGuess
m = IIf(Target.Interior.ColorIndex = 15, 16, 15)
titre.Interior.ColorIndex = 34
Target.Interior.ColorIndex = m
End If
Cancel = True
End Sub