Glad that it's working, but code that "works" is not necessarily good code. In your code, you are dividing an integer by a string, converting that to a string, then assigning the string to an integer. That's like ironing your computer before you eat you toaster for breakfast. Turn on Option Strict, fix the errors, and you will have a much better solution.