Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Okay, so I enter into cell A1 the formula =NOW(), and set the format to:
m/d/yyyy h:mm:ss.000 .... thus giving me fractions of a second to three decimal places. And those decimal places display just fine - for example the cell currently reads: 8/21/2006 16:18:15.260 However, when I set the same cell using VBA: Range("A" & 1) = Now() I get this: 8/21/2006 16:18:15.000 For some reason it rounds to the nearest second. Any idea why, and how I can fix it? Thanks! Pete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to identify decimal versus whole numbers | Excel Discussion (Misc queries) | |||
changing decimal places according to formula result | Excel Discussion (Misc queries) | |||
Formula for: Format Decimal places? | Excel Discussion (Misc queries) | |||
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. | Excel Discussion (Misc queries) | |||
decimal places within a formula | Excel Discussion (Misc queries) |