S
Simon
Hi. I'm a newbie to VBA and I'm having a problem with a Do until EOF
loop. In it's most simple terms the program is trying to read data
from a textfile, process it and then import the results into a range
in an excel worksheet. The problem is that it never processes the last
record. It reads the last record and then exits the loop (without
processing it) because it's the end of the file. For reasons that are
too complicated to explain briefly, I can't just duplicate the
processing part of the code after the loop. I've been having to add an
extra record to the end of the text files in order to fix the problem,
but I think there must be an easier way than that. Does anyone know of
one? TIA. Simon
loop. In it's most simple terms the program is trying to read data
from a textfile, process it and then import the results into a range
in an excel worksheet. The problem is that it never processes the last
record. It reads the last record and then exits the loop (without
processing it) because it's the end of the file. For reasons that are
too complicated to explain briefly, I can't just duplicate the
processing part of the code after the loop. I've been having to add an
extra record to the end of the text files in order to fix the problem,
but I think there must be an easier way than that. Does anyone know of
one? TIA. Simon