Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

German numeric format

Status
Not open for further replies.

trScott

Technical User
Dec 13, 2004
31
0
0
US
I need to format a value in the German format - switch the commas for periods and vice versa.

3,455.00 should be 3.445,00

Thanks for any help!
 
Hi
This might help:
Code:
Dim IntPart, DecPart
cur = (Format(cur, "#,###.00"))
If InStr(1, cur, ".") > 0 Then
    DecPart = Mid(cur, InStr(1, cur, ".") + 1)
Else
    DecPart = "00"
End If

IntPart = Mid(cur, 1, InStr(1, cur, ".") - 1)
Do While InStr(1, IntPart, ",") > 0
    Mid(IntPart, InStr(1, IntPart, ","), 1) = "."
Loop
EUCurrency = IntPart & "," & DecPart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top