Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Interrupt While loop


I have a program that check a value for 1 min, I do this in a while
loop. What are some ways to exit the while loop while it's running?

I would like to have an E-Stop button on my form for the user, but I
don't know how to make the button work when a while look is going.
Thanks.


--
jimbo_jones
------------------------------------------------------------------------
jimbo_jones's Profile: http://www.excelforum.com/member.php...o&userid=27244
View this thread: http://www.excelforum.com/showthread...hreadid=469034

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Interrupt While loop

Hi Jimbo,

If you put the DoEvents inside your loop, then you could use something
similar to this:

http://www.dicks-blog.com/archives/2.../14/stopwatch/

--
Regards,

Juan Pablo González
Excel MVP

"jimbo_jones"
wrote in message
...

I have a program that check a value for 1 min, I do this in a while
loop. What are some ways to exit the while loop while it's running?

I would like to have an E-Stop button on my form for the user, but I
don't know how to make the button work when a while look is going.
Thanks.


--
jimbo_jones
------------------------------------------------------------------------
jimbo_jones's Profile:
http://www.excelforum.com/member.php...o&userid=27244
View this thread: http://www.excelforum.com/showthread...hreadid=469034



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Interrupt While loop


Thanks! This works perfect!!


--
jimbo_jones
------------------------------------------------------------------------
jimbo_jones's Profile: http://www.excelforum.com/member.php...o&userid=27244
View this thread: http://www.excelforum.com/showthread...hreadid=469034

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
Interrupt find and replace Richard Excel Worksheet Functions 1 October 18th 05 01:32 AM
how to Interrupt text to speech run from word Dave R. Excel Programming 0 March 1st 04 08:04 PM
QueryTables Interrupt if URL is Down Steve Hieb Excel Programming 0 November 17th 03 10:07 PM
Message box that does not interrupt code Claude Excel Programming 2 October 10th 03 04:12 PM
how to prevent user to interrupt macro Jerome LT Excel Programming 2 August 13th 03 10:28 AM


All times are GMT +1. The time now is 11:29 PM.

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"