Sub MasquerOnglet()
Dim NomOnglet As Variant
NomOnglet = Array("Feuil2", "Feuil3", "Feuil4")
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
' Masquer les Feuilles
ws.Visible = xlSheetVeryHidden
For i = LBound(NomOnglet) To UBound(NomOnglet)
If ws.Name = NomOnglet(i) Then
' Masquer les Colonnes Par exemple: Colonne C-E-G et H.
ws.Range("c:c,e:e,g:g,h:h").EntireColumn.Hidden = False
' Demasquer les Feuilles
ws.Visible = True
End If
Next i
Next ws
End Sub
Sub DemasquerOonglet()
Dim NomOnglet As Variant
NomOnglet = Array("Feuil2", "Feuil3", "Feuil4")
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
' Demasquer les Feuilles
ws.Visible = True
For i = LBound(NomOnglet) To UBound(NomOnglet)
If ws.Name = NomOnglet(i) Then
' Afficher les Colonnes Par exemple: Colonne C-E-G et H.
ws.Range("c:c,e:e,g:g,h:h").EntireColumn.Hidden = False
End If
Next i
Next ws
End Sub