Unanswered: Macro to capture data from txt file - HELP
I need help. I have a txt file that I would like to open via a macro. Once open I need to search for data from one line and move to excel then find additional data on the next line (s) in the txt file and move to the same output row in excel.
This is an EDI error file.
I need to capture the data that has TRN*2*value~
Just need to move the 10 first 10 bytes of the value to one cell then the next 9 bytes to the next cell in the same row.
The I need to capture the STC segment from the next row in the txt file to the next columns of the same row.
For example: Output should have:
1111111111 I12345678 A2 20
Actually the STC data has three parts usually before the *
Even better I would like to just write out only the TRN numbers and STC data for just the STCs that have A3 or A7.