Got any Excel Questions? Free Excel Help.
The example below shows how CCur can be used in Excel VBA to convert a number to a Currency data type. Numeric amount from 922,337,203,685,477.5808 to 922,337,203,685,477.5807.
Sub ConvertToCurrency() Dim lNum As Double lNum = 999.989876 MsgBox CCur(lNum) End Sub
See also:
Convert a String or Number to Boolean |
Convert a String to a Byte Data Type |
Free Training Course: Lesson 1 - Excel Fundamentals
See also: Index to Excel VBA Code; Index to Excel Freebies; Lesson 1 - Excel Fundamentals; Index to how to… providing a range of solutions
Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.