Hi

Can you please review the forum rules regarging tags around code. I've edited your post for you this time.

The truncation is the result of the double number type. If you convert the type to String and change the last line to be
ExtractNumber = lNum
then it will output all the numbers.

HTH

rylo