![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi Guys.
In the following procedure, when the user places a check in in this CheckBox, a procedure is run every 60 seconds. The code continues looping until the checkbox is unchecked. What is the code needed to cancel the OnTime method? The help files for the OnTime method only give an example for a static time, not a loop. This is the line I am using in my attempt to cancel the method.
Thanks, Tom
[ This Message was edited by: TsTom on 2002-04-26 15:12 ] [ This Message was edited by: TsTom on 2002-04-26 15:41 ] |
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Hi Ts, you may want read Chip's perspective on the desirability of storing the time in a variable (bottom half).
http://www.cpearson.com/excel/ontime.htm _________________ Cheers, NateO [ This Message was edited by: NateO on 2002-04-26 15:45 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Thanks NateO
Works just as I needed.. Tom
[ This Message was edited by: TsTom on 2002-04-26 15:42 ] |
|
|
|
|
|
#4 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Glad to hear you're up and running. Have a great weekend! Say, neat trick changing the post title, is this an option for an original poster? I'm off to the test section....
_________________ Cheers, NateO [ This Message was edited by: NateO on 2002-04-27 15:18 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|