VBA FormatCurrency Function

VBA FormatCurrency Function in Excel

VBA FormatCurrency function in Excel is categorized as Math(Mathematical) & Trig function. This is a built-in Excel VBA Function. This function converts the given expression as formatted currency.

We can use this function in VBA and can’t use in Excel. This function we use in either procedure or function in a VBA editor window in Excel. We can use this VBA FormatCurrency Function in any number of times in any number of procedures or functions. Let us learn what is the syntax and parameters of the FormatCurrency function, where we can use this FormatCurrency Function and real-time examples in Excel VBA.

Syntax of VBA FormatCurrency Function

The syntax of the FormatCurrency Function in VBA is

FormatCurrency(Expression,[NumDigitsAfterDecimal],[IncludeLeadingDigit],[UseParentsForNegativeNumbers],[GroupDigits])

The FormatCurrency function returns a string value.

Parameters or Arguments:

The FormatCurrency function has five arguments in Excel VBA.
where
Expression:The Expression is a required parameter.
NumDigitsAfterDecimal:The NumDigitsAfterDecimal is an optional argument.
IncludeLeadingDigit:The IncludeLeadingDigit is an optional argument.
UseParentsForNegativeNumbers:The UseParentsForNegativeNumbers is an optional argument.
GroupDigits:The GroupDigits is an optional argument.

Where we can apply or use VBA FormatCurrency Function?

We can use this FormatCurrency Function in VBA MS Office 365, MS Excel 2016, MS Excel 2013, 2011, Excel 2010, Excel 2007, Excel 2003, Excel 2016 for Mac, Excel 2011 for Mac, Excel Online, Excel for iPhone, Excel for iPad, Excel for Android tablets and Excel for Android Mobiles.

Instructions to Run VBA Macro Code or Procedure:

You can refer the following link for the step by step instructions.

Instructions to run VBA Macro Code

Other Useful Resources:

Click on the following links of the useful resources. These helps to learn and gain more knowledge.

VBA Tutorial VBA Functions List VBA Arrays in Excel Blog

VBA Editor Keyboard Shortcut Keys List VBA Interview Questions & Answers

Leave a Reply