Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
![]() If I do Range ("a1") = timer on a loop then it refreshes showing fractions of a second, but shows whatever large number the timer is at However if i do tim = Timer Do diff = Timer - tim Range("a1") = diff loop then it counts up from zero, as intended, but for some reason drops all the decimal places Anyone know why it drops the decimals and how to make it keep the decimals? Many thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() tim = Timer Range("a1").NumberFormat = "0.0" Do diff = Timer - tim Range("a1") = diff Loop -- mikeaj72 ------------------------------------------------------------------------ mikeaj72's Profile: http://www.thecodecage.com/forumz/member.php?userid=46 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=44335 |
#3
![]()
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
![]() tim and diff need to be declared as Single or Double. Integer and Long carry no decimal places. -- Jim Cone Portland, Oregon USA "teepee" wrote in message If I do Range ("a1") = timer on a loop then it refreshes showing fractions of a second, but shows whatever large number the timer is at However if i do tim = Timer Do diff = Timer - tim Range("a1") = diff loop then it counts up from zero, as intended, but for some reason drops all the decimal places Anyone know why it drops the decimals and how to make it keep the decimals? Many thanks |
#4
![]()
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the help
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Timer question | Excel Discussion (Misc queries) | |||
VERY tricky timer question | Excel Programming | |||
Stopping a Timer / Running a timer simultaneously on Excel | Excel Discussion (Misc queries) | |||
Timer Question | Excel Programming | |||
timer | Excel Programming |