in reply to Running a Sub for a Text File

What's a "chunk"? What's not working? I'm willing to help, but I don't want to have to go over your whole program with a microscope and try to figure out what you *want* to do with it. Please be more specific in your questions. Also, it might help us to help you if we know what your *overall* goal is here (something to do with getting the data out of the format it's in and putting it into HTML tables -- but what parts of the data you have?)

Following are some pointers that jumped out at me that have probably tangential relations to the problem of structuring your algorithm:

Hope these suggestions help.