Hopefully an easy one this, believe it or not I cannot find anything that gives the solution!
I have a VBA sub that will continually check something at set times, so needs to run forever, all I need is a line that will detect if the "q" key is pressed on the keyboard and exit the sub:
Do
Loop Until False 'loop forever - needs to be until "q" is pressed on the keyboard
Can anyone help please?
Start Free Trial