Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Range("G1")) Is Nothing Then
' Application.ScreenUpdating = False
Range("A:AY").EntireColumn.Hidden = False 'affiche tout
'*** masque les colonnes indiquées ****
If Target = 2022 Then Range("Q:AY").EntireColumn.Hidden = False
If Target = 2023 Then Range("Q:R").EntireColumn.Hidden = True
If Target = 2024 Then Range("Q:T").EntireColumn.Hidden = True
Range("G1").Select
End If
End Sub