Hi all,
I recorde a macro to replace my commas in amount with dots.
Works manually while recording it ok.![]()
Please Login or Register to view this content.
But when I run the recorded macro it will not replace anything....![]()
Hi all,
I recorde a macro to replace my commas in amount with dots.
Works manually while recording it ok.![]()
Please Login or Register to view this content.
But when I run the recorded macro it will not replace anything....![]()
Your code works for me, here is is cleaned up a bit.
If you are trying to change the commas in an actual number, you would have to format the cells as text first.![]()
Please Login or Register to view this content.
Thanks but it does nothing for me.....
Also when I first change the format...it still keeps showing "," and not "."
Let me sent a sample which does not work for me.
My Office settings are Dutch so decimals separator is ",".
Hi
Run it in Xcel2007. It works fine here.
bart
The data in column A in your sample is numeric. With my regional settings, the decimal part is separated by a full stop (dot). In yours, it may be a comma (,).
If I do a global replace (using your code) and change full stop to comma, it works but the data becomes text where there is a decimal part. I can then reverse the process and it becomes numeric again.
Nothing wrong with the code as it stands.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks