Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
[VBA]Inserted value does not get formatted
I insert a value with a Range.Value = "0,99999". The cell where I insert as the following format "hh:ss". But the value are inserted like "0,9999". When I edit the value and press enter the suddenly get the correct format? What should I do -- Klimak ----------------------------------------------------------------------- Klimaks's Profile: http://www.excelforum.com/member.php...fo&userid=1465 View this thread: http://www.excelforum.com/showthread.php?threadid=26379 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
[VBA]Inserted value does not get formatted
In VBA, you need to use US formatted number
Range.Value = 0.99999 (no quotes, use period rather than comma). -- Regards, Tom Ogilvy "Klimaks" wrote in message ... I insert a value with a Range.Value = "0,99999". The cell where I insert as the following format "hh:ss". But the values are inserted like "0,9999". When I edit the value and press enter they suddenly get the correct format? What should I do? -- Klimaks ------------------------------------------------------------------------ Klimaks's Profile: http://www.excelforum.com/member.php...o&userid=14656 View this thread: http://www.excelforum.com/showthread...hreadid=263797 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to fix a formula, so when a row is inserted it doesn't cha | Excel Discussion (Misc queries) | |||
now get message "disk is not formatted or formatted for Mac" | Excel Discussion (Misc queries) | |||
Excel 2003 Inserted pictures formatted in PNG format. | Excel Discussion (Misc queries) | |||
Borders in an inserted row | Excel Worksheet Functions | |||
Converting 'General' formatted cells to Text formatted cell using. | Excel Worksheet Functions |