Problem with komma versus period in Excel

L

Leif Rasmussen

Hej
I am have problems with the use of period in Excel. I
Denmark komma is the decimal seperator.
If I convert (from within VB Editor) the content of a cell
from "6340,00" to text and replace the komma with period I
get "6340" (I wanted "6340.00).
If I make the convertion in Excel and record the macro at
the same time I get the desired result i my sheet. BUT
when I put in my code in VBA and run it from here I still
get the wrong result, "6340" and not "6340.00".

I know Excel (VBA) transform "." to "," probably acording
to Windows setup. But have to desolve my problem, I need
the period in the text for a lookup function.

Thanks in advance

Regards
Leif Rasmussen
 
Top