ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Code referencing the system clock? (https://www.excelbanter.com/excel-programming/279251-code-referencing-system-clock.html)

mcdowell[_2_]

Code referencing the system clock?
 
I'm trying to create a progress indicator that is based strictly on the
system clock. The UserForm has two labels.... lblBottom and lblTop....
Processing time is 5 minutes using multiple macros which could include
an update macro. If anyone has a suggestion as to the code required?
I would really appreciate seeing it! Thanks in advance



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


Tom Ogilvy

Code referencing the system clock?
 
Here is John Walkenbach's instructions on creating a progress indicator:
http://j-walk.com/ss/excel/tips/tip34.htm

Since you are opening files, you don't seem to want to admit that
a) the progress indicator must be updated by your code
b) while the files are being opened, your code is suspended.

If you wanted to progress the indicator every 30 seconds as an example
within your 5 minute span, then your code would need to be running at each
of the 30 second marks.

If this is possible, it would require use of the Windows api and some
separate process closer to the operating system.

--
Regards,
Tom Ogilvy

"mcdowell" wrote in message
...
I'm trying to create a progress indicator that is based strictly on the
system clock. The UserForm has two labels.... lblBottom and lblTop....
Processing time is 5 minutes using multiple macros which could include
an update macro. If anyone has a suggestion as to the code required?
I would really appreciate seeing it! Thanks in advance



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/





All times are GMT +1. The time now is 03:46 PM.

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