ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   code to stop all running macro's (https://www.excelbanter.com/excel-programming/423576-code-stop-all-running-macros.html)

Imda14u

code to stop all running macro's
 
Hi all,

in my workbook i have created links to realtime stockquotes.
i created a macro that does a fullcalculation every minute until 1700 hrs.

Now, what i need is code to stop all running macro's. i tried the quit
method, but id don't want excel to quit. i just want to stop all macro's
when i click a button (no Ctrl+break)

Any help is greatly appreciated.

TIA

Sybolt

Imda14u

code to stop all running macro's
 
Thanks Gord,

As amatter of fact I haven't used the onTime method.
The code loops each minut until a specified time is reached.

It stops automatically, but i clock a button to get it start running.

I also want a button to interrupt the loop.

I'm gonna have a look at Chip's ideas.

greets

Sybolt


All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com