SQUIDD
Well-known Member
- Joined
- Jan 2, 2009
- Messages
- 2,126
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi All
So basically, i was wondering if i could exit a loop if i made a command button.
I want to call this within my other code.
But wish to click a command button if possible to end it.
cheers
dave
So basically, i was wondering if i could exit a loop if i made a command button.
I want to call this within my other code.
But wish to click a command button if possible to end it.
Code:
Sub nagg()
For I = 1 To 100
Call Application.Speech.Speak("Attention required")
Application.Wait (Now + TimeValue("00:00:30"))
Next I
End Sub
cheers
dave