My procedure reads a line from a text file, uses the "split" function to populate an array with the components of the line and then displays the first element of the array using "debug.print". This works as expected if it just processes the first line from the input file but if I enclose the action in a "Do" loop to process each of the lines in the file, in order, a "Subscript out of range" error is generated by the debug.print statement.