Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default [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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default [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
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
How to fix a formula, so when a row is inserted it doesn't cha futureplus Excel Discussion (Misc queries) 1 August 12th 08 03:44 AM
now get message "disk is not formatted or formatted for Mac" 5carps Excel Discussion (Misc queries) 0 June 14th 06 12:16 AM
Excel 2003 Inserted pictures formatted in PNG format. WildBill Excel Discussion (Misc queries) 0 November 18th 05 09:03 PM
Borders in an inserted row Amergin Excel Worksheet Functions 0 July 29th 05 07:58 PM
Converting 'General' formatted cells to Text formatted cell using. Zahid Khan Excel Worksheet Functions 1 March 12th 05 07:13 PM


All times are GMT +1. The time now is 07:43 PM.

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

About Us

"It's about Microsoft Excel"