Cambiar la divisa

Buenas tardes,
Para cambiar la divisa he tenido que abrir el navegador, introducir la cantidad del excel, descargar el resultado desde el navegador hasta el excel e insertarlo en Word.
Seguro que hay alguna forma mas simple de hacerlo con menos pasos. ¿Me podéis ayudar? Gracias.

Hi,
at first check this activity:
image

image

Then something more complex:

FormatCurrency(your_String,2,TriState.True,TriState.True,TriState.True) //Or:
FormatCurrency(your_String,2,0,0,TriState.True)

Or

String.Format()
String.Format("Amount: {0}",dbl.ToString("C",New System.Globalization.CultureInfo("hu-HU"))) // Or:
String.Format("{0}",dbl.ToString("C",New System.Globalization.CultureInfo("en-GB")))
dbl = System.Double // eg. 123.45
Format specifier Name Description Examples
“C” or “c” Currency Result: A currency value.

Or:

dbl.ToString("C",System.Globalization.CultureInfo.CurrentCulture) //Your current Culture
dbl.ToString("C",New System.Globalization.CultureInfo("hu-HU")) // Specific Culture
dbl = System.Double // eg. 123.45
1 Like

Gracias.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.