vba format currency

The solution for “vba format currency” can be found here. The following code will assist you in solving the problem.

‘ If A1 value is 2021,543
With Range(“A1”)
.NumberFormat = “€#,##0.00” ‘ -> €2021,54
.NumberFormat = “$ #,##0.00” ‘ -> $ 2021,54
.NumberFormat = “#,##0.00 €” ‘ -> 2021,54 €
.NumberFormat = “#,##0€” ‘ -> 2022€
Debug.Print .NumberFormat ‘ -> #,##0€
End With

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts