Quote Originally Posted by tiguy
This loops through 32766 line before i get this error.
You have hit the max an Integer can hold. Change all of your Integers to Longs.