Thread: Parse Text File
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John[_62_] John[_62_] is offline
external usenet poster
 
Posts: 16
Default Parse Text File

I have a text file with almost 60,000 rows of data
seperated into many different sections. The rows in each
section have a different number of fields and field
lenghts. Right now, I'm only interested in pulling data
from one section. I'd like to write a macro to go line by
line until it finds the title of the section I'm
interested in, start reading and parsing the data, then
stop when it finds the name of a new section. I know how
to read an entire text file and parse data. How can I
make the macro start when it finds the begining of a
section and stop at the end of the section?

Thanks for any help.