I have a user form with a toggle button which calls two different macros when the button is pressed. I'm trying to stop running both macros when the button is depressed but not sure of the correct command. I've been searching all over the internet without any luck. I'm sure it's something very simple Below is the code I currently have.
Private Sub ToggleButton1_Click()
If ToggleButton1 = True Then
ToggleButton1.Caption = "Start"
Call Calculate_Range
Call DisplayTime
Else
ToggleButton1.Caption = "Stop"
End If
End Sub
Private Sub ToggleButton1_Click()
If ToggleButton1 = True Then
ToggleButton1.Caption = "Start"
Call Calculate_Range
Call DisplayTime
Else
ToggleButton1.Caption = "Stop"
End If
End Sub