Hi,
I have a sheet full of numbers, but I need to change their format to my native (that is Czech) where we use a decimal comma instead of a decimal point. Otherwise, my Excel won't add up or substract the data.
If I perfom the following code manually, it works.
If I use this code in a Sub(), it will leave me with all the data set as "number saved as text" and the option to convert it into number.
I would really appreciate any help. Thanks in advance.
I have a sheet full of numbers, but I need to change their format to my native (that is Czech) where we use a decimal comma instead of a decimal point. Otherwise, my Excel won't add up or substract the data.
If I perfom the following code manually, it works.
Code:
Selection.NumberFormat = "0.00"
Selection.Replace What:=".", Replacement:=",", LookAt:=xlPart, _
SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
I would really appreciate any help. Thanks in advance.