Hello,
I'm importing data containing numbers in a single row into excel from another source.
The numbers are written with a point (.) as a decimal sign (for example; 1.20 , 231.1, 9.0)
Every cell contains only one number though.
I'm located in The Netherlands, so I have to convert those numbers, so the point is replaced by a comma-sign.
I've found a way to do this, by selecting the numbers, changing the cell type to text, using the replace function to search for every point and to replace it by a comma. After this, I change the cell type to number.
This solves the full problem, so I thought I would record this into a macro.
I recorded the macro, and used the same procedure.
After this, I pasted the same dataset into excel, and executed the macro.
Unfortunately, this resulted in numbers formatted as text. (indicated with the familliar green little triangle)
To me, it seems the same procedure on the same data gives different results if executed with a macro instead of manually... How can I solve this?
I'm importing data containing numbers in a single row into excel from another source.
The numbers are written with a point (.) as a decimal sign (for example; 1.20 , 231.1, 9.0)
Every cell contains only one number though.
I'm located in The Netherlands, so I have to convert those numbers, so the point is replaced by a comma-sign.
I've found a way to do this, by selecting the numbers, changing the cell type to text, using the replace function to search for every point and to replace it by a comma. After this, I change the cell type to number.
This solves the full problem, so I thought I would record this into a macro.
I recorded the macro, and used the same procedure.
After this, I pasted the same dataset into excel, and executed the macro.
Unfortunately, this resulted in numbers formatted as text. (indicated with the familliar green little triangle)
To me, it seems the same procedure on the same data gives different results if executed with a macro instead of manually... How can I solve this?
Last edited: