I
islman1975
Guest
I've got a txt file I want to import using the Docmd.importtext but I first need to delete all the text up to but not including the following text string 'TyprRI'.
If I do this manually i can get it to work but I need to do it from VBA as I get the user to browse to the original text file from a form.
I've attched the two text files. The first is the original file and the second is what I need to alter the text file into and then save it. I've got a s far as opening the text file but have no idea how to go about parsing the text from the start of the file upto the test string 'TypreRI'.
If I do this manually i can get it to work but I need to do it from VBA as I get the user to browse to the original text file from a form.
I've attched the two text files. The first is the original file and the second is what I need to alter the text file into and then save it. I've got a s far as opening the text file but have no idea how to go about parsing the text from the start of the file upto the test string 'TypreRI'.