It converts numbers up to 999, just integers...

If you intend to use it to convert currency, you should do a calling function:

1) group the integer part in groups of three digits and call the function each time, adding at the end "euro"/"euros", "mil", "millón", "billón" as needed
2) call the function with the fractional part, rounding to 2 digits

Add the parameter "strCurrency" to the ConvertToWords function, so you can use Euros, Cents, Pounds, Dollars or whatever