Display Elapsed Time like a Stopwatch

A

avveerkar

Can some one give me a hint as to how I can write a sub to display
elapsed time meter on the sheet, say in one of the cells? This should
tick evey second while my other macros are running. I want to time
running of my macros but I want to see this timer ticking every second
as my macros execute and not just show total time elapsed for running my
macros. I think I need to know how to trigger an event automatically
every second and then sink it in my "timer" sub to display the time. I
need hint to generate event every second.

Thanks in anticipation.
 
B

Bob Phillips

I have a workbook that runs a countdown timer. Mail me if you want a copy

bob (dot) phillips (at) tiscali (dot) co (dot) uk

do the obvious with the bits in brackets

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 
T

Tushar Mehta

If you decide to "roll your own" check out XL VBA help for the OnTime
method.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 
A

avveerkar

Tushar said:
If you decide to "roll your own" check out XL VBA help for the OnTime
method.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

Dear Tushar,

Thanks a lot . OnTime will certainly work. This the hint I was looking
for.

Regards
A V Veerkar
 
T

Tom Ogilvy

Just to add a bit of information:
Ontime is not preemtive, so it won't update while a macro is running - which
is what you described.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Getting elapsed time 8
date/time elapsed event 7
A stopwatch in a userform 2
Calculating Time 2
Stopwatch/Clock 6
elapsed time 4
Stopwatch In Userform 3
Elapsed time to run code 7

Top