Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Display Elapsed Time like a Stopwatch


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.


--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile: http://www.excelforum.com/member.php...o&userid=30338
View this thread: http://www.excelforum.com/showthread...hreadid=503743

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Display Elapsed Time like a Stopwatch

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)

"avveerkar" wrote in
message ...

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.


--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile:

http://www.excelforum.com/member.php...o&userid=30338
View this thread: http://www.excelforum.com/showthread...hreadid=503743



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Display Elapsed Time like a Stopwatch


Tushar Mehta Wrote:
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



--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile: http://www.excelforum.com/member.php...o&userid=30338
View this thread: http://www.excelforum.com/showthread...hreadid=503743

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Display Elapsed Time like a Stopwatch

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.

--
Regards,
Tom Ogilvy


"avveerkar" wrote
in message ...

Tushar Mehta Wrote:
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



--
avveerkar
------------------------------------------------------------------------
avveerkar's Profile:

http://www.excelforum.com/member.php...o&userid=30338
View this thread: http://www.excelforum.com/showthread...hreadid=503743





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
Stopwatch time DSR_CT Excel Discussion (Misc queries) 2 February 18th 08 08:03 AM
Display Elapsed Time Nigel Excel Worksheet Functions 2 May 29th 07 02:23 PM
Run a stopwatch for time then execute code JFamilo[_10_] Excel Programming 2 August 4th 05 02:17 AM
A stopwatch to record time in a cell Gabe Excel Programming 3 September 2nd 04 03:04 PM


All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"