I have a column of numbers. In the next column, I want the text/word conversion of the numbers.
Example: 123.561
would convert to One hundred twenty three point five six one
.
I do not want to convert to currency, just number to text, with any number of decimal places.
How can I do this?
Edit: I've adapted the procedure below to non-currency, unlimited decimal places.
Edit 2 considers internationalisation via two changes in (1)
Function SpellNumber
and (2)Function fractionWords
to make code work with other decimal separators (e.g. colon in middle Europe) ' - see commentExample:
...returns:
Two Thousand One Hundred Twenty Three point Four Five Seven Five
Paste the following code into a new module:
(Adapted from the Source: Microsoft)
There are several other examples online. You may have had couple finding them if you were searching for "convert numbers to text" since that implies changing the data type. A better search term would be "vba convert numbers to words".