ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pausing in Excel VBA (https://www.excelbanter.com/excel-programming/359012-pausing-excel-vba.html)

Joey Lichtenstein[_4_]

Pausing in Excel VBA
 

Is there a better way of pausing Excel than:

Application.Wait waitTime

I have code that I would like to run either every 30 minutes or every 60
minutes, but I really hate the way the Appliaction.Wait function works.
(The way it just locks up the application.)

Thanks!

Joey

Tim Williams

Pausing in Excel VBA
 
application.ontime

Tim


"Joey Lichtenstein" wrote in message ...

Is there a better way of pausing Excel than:

Application.Wait waitTime

I have code that I would like to run either every 30 minutes or every 60
minutes, but I really hate the way the Appliaction.Wait function works.
(The way it just locks up the application.)

Thanks!

Joey




Tom Ogilvy

Pausing in Excel VBA
 
See the examples at
http://www.cpearson.com/excel/ontime.htm

--
Regards,
Tom Ogilvy



"Tim Williams" wrote:

application.ontime

Tim


"Joey Lichtenstein" wrote in message ...

Is there a better way of pausing Excel than:

Application.Wait waitTime

I have code that I would like to run either every 30 minutes or every 60
minutes, but I really hate the way the Appliaction.Wait function works.
(The way it just locks up the application.)

Thanks!

Joey






All times are GMT +1. The time now is 05:19 PM.

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