How can I stop current timers from firing again and terminate a sub

I have a timer that is fired every 100ms inside that timer I have different sub routine that are executed. If I hit a condition in which I would like to stop the timer and also exit the sub without re entering how could I do that?
cmdolcetAsked:
Who is Participating?
 
MMTadminConnect With a Mentor Commented:
Every 100ms damn that's a lot of doing

Private Sub Timer

Timer.enabled = false
DoThis

End Sub

Private Sub DoThis

Debug.Print "Hello"
Timer.Enabled = True

End Sub
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Stop the timer and exit the sub, just like you said?

    Timer1.Stop()
    Exit Sub
0
All Courses

From novice to tech pro — start learning today.