Well, let's see.
If it were me, and there were a dozen or more controls to behave the same way, I'd use a class module. Seeing as there are only 4, one on each sheet, I'd write a macro to do what you want by looping through each sheet's respective toggle control and do what you want. Let's say you name that macro myToggleTask. Then it's a simple matter of going one by one to each toggle control and for its respective Click event, run the myToggleTask macro by putting this one-liner in the code:
Private Sub ToggleButton1_Click()
Run "myToggleTask"
End Sub
|