Option Compare Text
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
Dim Ws As Worksheet
Cancel = Not Cancel
Application.ScreenUpdating = False
Select Case Target.Address
Case "$A$2"
For Each Ws In Sheets
Ws.Range("K1:L1,P1").EntireColumn.Hidden = Not Ws.Range("K1:L1,P1").EntireColumn.Hidden
Next Ws
End Select
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim I As Long
Application.ScreenUpdating = False
Dim FeuilleActive As String
Application.EnableEvents = False
FeuilleActive = ActiveSheet.Name
For I = 1 To Sheets.Count
On Error Resume Next
If Sheets(I).Name <> "MENU" Then
Sheets(I).Select
Range("K1:L1,P1").EntireColumn.Hidden = True
' Range("K1").EntireColumn.Hidden = True
With Sheets(I)
End With
End If
Next I
Range("A1").Select
On Error GoTo 0
Sheets(FeuilleActive).Select
Sortie:
Application.EnableEvents = True
End Sub