Sorry gcaron, not ignoring you, 'bin away all day.
By using these functions, you are ending up with a "string variable" of words that represents the number. Call that variable "NumberWords" and this is what you are inserting into your code. It's the variable "NumberWords" that needs tuned up to eliminate the hyphen on the end.
If NumberWords equals "two hundred twenty- " , after this
NumberWords = replace(NumberWords, "- ", " ")
NumberWords will equal "two hundred twenty " , with just a space on the end.
Now use NumberWords in your code and it should be right. ..... but there could be other situations that need adjustment too, like if twenty- was at the end of a sentence followed by a period not a space. The above would miss it but this should just remove the hyphen
NumberWords = replace(NumberWords, "-.",".")
You could put these two lines one after the other with no issues.
Hope that is of some assistance.
NoS