Hi All, anyone see where im going wrong here?
Sais, i am unable to get the visible property of the sheets class?
I am trying to toggle hidden/unhidden the above sheets.
Thanks everyone in advance
sd
Sais, i am unable to get the visible property of the sheets class?
Code:
Private Sub ToggleButton1_Click()
'Toggles the To Do List sheet as hidden and unhidden
Application.ScreenUpdating = False
If Worksheets(Array("Week 1", "Week 2", "Week 3", "Week 4", "Week 5")).Visible = False Then
Worksheets(Array("Week 1", "Week 2", "Week 3", "Week 4", "Week 5")).Visible = True
ElseIf Worksheets(Array("Week 1", "Week 2", "Week 3", "Week 4", "Week 5")).Visible = True Then
Worksheets(Array("Week 1", "Week 2", "Week 3", "Week 4", "Week 5")).Visible = False
End If
Application.ScreenUpdating = True
End Sub
I am trying to toggle hidden/unhidden the above sheets.
Thanks everyone in advance
sd