Hi, I have toggle buttons that (un)hide different columns respectively. However, I have a click button that unhides all my columns. When my columns are unhidden, I want the toggle buttons to return to their unpressed state. I've been trying to figure out how to basically get the following to work.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Columns("E:I").Hidden = False Then
Me.ToggleButton2.Value = True
Else
Me.ToggleButton2.Value = False
End If
End Sub
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Columns("E:I").Hidden = False Then
Me.ToggleButton2.Value = True
Else
Me.ToggleButton2.Value = False
End If
End Sub