Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform stopwatch format milliseconds

Hi,

I want to put a stopwatch in a label. What is Format to
display minutes, seconds, and milliseconds?

Thanks in advance,

Herman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Userform stopwatch format milliseconds

hh:mm:ss.000

But I think you only get 100ths of seconds.

If you want a something for timing the speed of a macro
you might want to take a look at
http://www.mvps.org/dmcritchie/excel/slowresp.htm#timer

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Herman" wrote in message ...
Hi,

I want to put a stopwatch in a label. What is Format to
display minutes, seconds, and milliseconds?

Thanks in advance,

Herman



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Userform stopwatch format milliseconds

David,

100ths seem to work for me (Excel 2000, XP) in a worksheet cell.

However, when trying to apply it to a label

Label1.Caption = Format(Range("A1"), "hh:mm:ss.000")

shows simply as .000

but

Label1.Caption = Range("A1").Text

shows okay.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"David McRitchie" wrote in message
...
hh:mm:ss.000

But I think you only get 100ths of seconds.

If you want a something for timing the speed of a macro
you might want to take a look at
http://www.mvps.org/dmcritchie/excel/slowresp.htm#timer

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Herman" wrote in message

...
Hi,

I want to put a stopwatch in a label. What is Format to
display minutes, seconds, and milliseconds?

Thanks in advance,

Herman





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
hh:mm:ss AND Milliseconds? Lainey25 Excel Discussion (Misc queries) 5 May 6th 08 05:32 PM
how do i format an excel cell for stopwatch times mm:ss? John Hansen Excel Discussion (Misc queries) 1 September 19th 07 08:34 PM
Working With Times / Milliseconds Carl Excel Worksheet Functions 1 December 7th 06 05:03 AM
Milliseconds in a Pivot Table Ryan Excel Discussion (Misc queries) 2 April 6th 06 11:09 PM
Milliseconds In VB ccdubs Excel Programming 1 February 26th 04 11:20 PM


All times are GMT +1. The time now is 06:41 PM.

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"