I have an issue with the REPLACE function of VBA. For example, whem I'm in a sheet and use CTRL + H to replace all the "." to ",", it works good. But when I'm trying to do it with a macro I have an issue with the values > than 1
- 0.8 ---> 0,8
- 0.9 ---> 0,9
- 1.09978063783 ---> 109978063783
Here is the code :
Rows("10:10").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Replace What:=".", Replacement:=",", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, MatchByte:=False