Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default stop a program

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default stop a program

are you wishing to stop it at something specific or just stop it like a
screen saver? as soon as anything is done?

"don bowyer" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default stop a program

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

-----Original Message-----
are you wishing to stop it at something specific or just

stop it like a
screen saver? as soon as anything is done?

"don bowyer" wrote:

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

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default stop a program

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


  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default stop a program

Hi Stephen

Wonderful as your WS is, I can't find your CheckKey
method. Please give me a pointer
Don

-----Original Message-----
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


.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default stop a program

Hi Don,

You will find the CheckKey download in Stephen's 'They Said it Couldn't be
Done' section at:

http://www.oaltd.co.uk/Excel/SBXLPage.asp




---
Regards,
Norman



wrote in message
...
Hi Stephen

Wonderful as your WS is, I can't find your CheckKey
method. Please give me a pointer
Don

-----Original Message-----
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


.



  #7   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default stop a program

Hi Norman
Sorry for belated thanks, bur=t thanks. I found it, and
used it successfully.
Regards Don

-----Original Message-----
Hi Don,

You will find the CheckKey download in Stephen's 'They

Said it Couldn't be
Done' section at:

http://www.oaltd.co.uk/Excel/SBXLPage.asp




---
Regards,
Norman



wrote in message
...
Hi Stephen

Wonderful as your WS is, I can't find your CheckKey
method. Please give me a pointer
Don

-----Original Message-----
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


.



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop a program on startup in xp pro Dontgiveup62 Excel Discussion (Misc queries) 5 January 22nd 09 06:08 PM
Interrupting long calculations in Excel? Hi all, I am having a verylong calculation in Excel using VBA. Of course I know I can hit ESC orCTRL+BREAK to interrupt the VBA program. But I found due to too long runningprocess, the Excel window stop to LunaMoon Excel Discussion (Misc queries) 3 July 31st 08 04:47 PM
Can I stop Excel program flashing on screen during run PJ[_4_] Excel Programming 3 July 7th 04 12:01 PM
Stop a VB program from running Soterro Excel Programming 4 December 5th 03 07:25 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM


All times are GMT +1. The time now is 01:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"