Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Move data from text box to cell

I have a function where data is typed in a text box (on a chart-sheet)
and copied to a data-sheet for further calculations. My problem is
that if you type a value with more that 2 decimals the decimal
separator is lost.
eg.
134,6 - 134,6
134,65 - 134,65
134,656 - 135656

It works if you use a " . " instead of a " , " but that's not the
standard.

My code is:

ActiveSheet.Shapes("Autoshape 2").Select
Input1 = Selection.Characters.Text
Cells(1,1) = Input1


Any suggestions?

Best regards
/Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 896
Default Move data from text box to cell

try:

Cells(1, 1) = Input1 + 0

or

Cells(1, 1) = Input1 * 1
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
Move Comment into cell as Text Frances Excel Discussion (Misc queries) 2 November 5th 08 08:22 PM
Move comment into cell as text PhooPhan Excel Discussion (Misc queries) 4 September 2nd 08 10:17 AM
VB code to move text cell Len Excel Programming 2 June 14th 08 04:07 PM
Move text data including detailed formatting Adrian Excel Programming 1 May 15th 07 12:28 AM
Find text and move it to other cell broogle Excel Programming 7 September 20th 05 08:19 AM


All times are GMT +1. The time now is 10:34 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"