Stefos,
Here are two variations to Derk's example.
The first loop will change all worksheets apart from the active one.
The second loop compares sheet name with a list you supply.
VB:
Private Sub CheckBox1_Click()
Dim i As Integer
Application.ScreenUpdating = False
' all sheets except current
For i = 1 To Worksheets.Count
If Worksheets(i).Name <> ActiveSheet.Name Then
Worksheets(i).Range("C1").EntireColumn.Hidden = CheckBox1.Value
End If
Next i
' Or
' all named sheets
For i = 1 To Worksheets.Count
Select Case Worksheets(i).Name
Case "Jan", "Feb" ' add your sheet names here
Worksheets(i).Range("C1").EntireColumn.Hidden = CheckBox1.Value
End Select
Next i
On Error Resume Next
Application.ScreenUpdating = True
Cells(1, 1).Select
End Sub
Remember to comment out the loop you don't need.
Cheers
Andy
Bookmarks