Hello Ivany and mat41,
I created another function, similar to mat41´s, but a bit more general. I hope you find it useful:
function USCurrency(currValue)
USCurrency=FormatCurrency(FormatNumber((currValue) , 2, -2, -2, -2))
End function
When you have (say) the currValue= 76543,21 (21 is decimal) this function will get 76,543.21 (thousands and decimals separators)
Important: don´t forget to write "LCID = 1033" (for US formats) at the top of the page where this function is defined!
Cheers,
fskilnik
|