stop a program

  • Thread starter Thread starter don bowyer
  • Start date Start date
D

don bowyer

I have a program which runs a clock loop.
I want to stop it at any time by one mouse click of
something - a toolbar or worksheet button - whatever.
I can of course stop it by Ctrl + BREAK.
It's the code to do the stopping I can't get - rather than
the means of applying it.
I assume the appropriate code would have to go into the
loop so that the stopping instruction is seen at each pass.
Can anyone please help.
Don
 
are you wishing to stop it at something specific or just stop it like a
screen saver? as soon as anything is done?
 
Hi Don,
I have a program which runs a clock loop.
I want to stop it at any time by one mouse click of
something - a toolbar or worksheet button - whatever.

The CheckKey example on my web site uses a key press to stop a loop, if
that's OK.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk
 
Hi Ben
I want to make it stop at any time I choose and I want to
do something specific to make it stop.
Don
 
Hi Stephen

Wonderful as your WS is, I can't find your CheckKey
method. Please give me a pointer>
Don
 
Hi Norman
Sorry for belated thanks, bur=t thanks. I found it, and
used it successfully.
Regards Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top