Mustakrakish
New Member
- Joined
- Nov 7, 2011
- Messages
- 5
Hi everybody,
I have problem with changing number format.
When I export data from SAP, number format is like this: 10.548,45
In excel, this is stored as a text, cause of that dot as a thousands divider. Usualy i do just replace dot with nothing and it works. but when i do it as a macro, for some reason, it replaces comma as well, therefore instead of having number 10 548,45 I end up with 1 054 845.
This is my code for replacing dots.
Columns("D:F").Select
Selection.Replace What:=".", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Cell format is number.
Thank you very much
I have problem with changing number format.
When I export data from SAP, number format is like this: 10.548,45
In excel, this is stored as a text, cause of that dot as a thousands divider. Usualy i do just replace dot with nothing and it works. but when i do it as a macro, for some reason, it replaces comma as well, therefore instead of having number 10 548,45 I end up with 1 054 845.
This is my code for replacing dots.
Columns("D:F").Select
Selection.Replace What:=".", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Cell format is number.
Thank you very much