and the solution from @prasath17 is working as long as you use the ‘english’ format of numbers, where the dot is the separator for the decimals and the comma for the thousands.
But when you use this macro for the ‘german’ format, where it is just the other way round you get a faulted format.
Input:
Output:
In the macro I used the follwing format:
“#.##0,00”
As you can see here:
Sub macro()
Range("K:AC").Select 'specify the range which suits your purpose
With Selection
Selection.NumberFormat = "#.##0,00"
.Value = .Value
End With
End Sub
Many thanks in adavance for any assitance and help.
I finally made it with this short macro, which I recorded in Excel and that it worked.
Sub Makro()
Columns("G:Y").Select
Selection.NumberFormat = "#,##0.00"
End Sub
It is interessting and I don´t have any explanation for this, but with this format in the macro the number format in Excel is correct, even it is the otherway round.
So, maybe this could help others.
Yours