Quote Originally Posted by Cow124 View Post
The error happens at this time:
Code:
lines.count = 109517
line = 109517
Changing the for loop to : 0 to 109516 solves the problem, but in the future, how should I approach this?
Thanks
Collections are zero indexed based, so the first element is at index 0,
For line = 0 To
,and the last element is equal to the count minus one,
For line = 0 To (lines.Count - 1)