×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

replace point by coma macro in a range

replace point by coma macro in a range

replace point by coma macro in a range

(OP)
Hi All,

my int setting for decimal is point (.)

I need a CSV file, made from excel, to have coma (,) instead of point(.).

I donno why but for low value it works  
0.254 => 0,254 as text (good)
but for higher value it doesnt work
 123456.789 => 12 356 789 as value (bad)

when i dont use the macro but the replace function it works...

 the code is :

Range("A1:D5").Select
Selection.Replace What:=".", Replacement:=",", LookAt:=xlPart, SearchOrder:=xlByRows,_ MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False

thanks

Have fun,

Eric

catiav5@softhome.net

RE: replace point by coma macro in a range

That's easy, use the taskbar goto start control panel and open regional and language settings. Goto the Regional tab then select Customize button and set these options:
<Digital symbol> = ,
<Digital grouping> = (select the value with no , or .)
<List Seperator> = ,

Apply or Ok

Start excel and enter some values, then export to .csv!

It works fore me.

P.S.
I work with XP, Regional Settings maybe different in W98, NT

RE: replace point by coma macro in a range

(OP)
Well, thanks anyway but .......

this is not really what i ask for.
what if i dont want to change INT settings ?

Have fun,

Eric

catiav5@softhome.net

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources