Ok, so I've got 14 toggle buttons on a worksheet that ultimately could grow to be a hundred of them. I want the buttons to have no caption when idle and I want them to say "OFF" when depressed. I know how to write a sub for each button to do so.
Private Sub ToggleButton1_Click()
If ToggleButton1.Caption = "OFF" Then
ToggleButton1.Caption = ""
Else
ToggleButton1.Caption = "OFF"
End If
End Sub
However, considering the end of the world is supposed to be tomorrow and I don't have that much time, I would like to know if there is a sub that I could write to control all of the buttons at once?
Private Sub ToggleButton1_Click()
If ToggleButton1.Caption = "OFF" Then
ToggleButton1.Caption = ""
Else
ToggleButton1.Caption = "OFF"
End If
End Sub
However, considering the end of the world is supposed to be tomorrow and I don't have that much time, I would like to know if there is a sub that I could write to control all of the buttons at once?