Move data from text box to cell

  • Thread starter peterjohansson.sthlm
  • Start date
P

peterjohansson.sthlm

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top