Copy previous lines from a specific string in a text file and paste them to Excel cell.
Hi.
I have a text file, its look like...
word 1
Line
word 2
Line
word 3
Line
I want to find all the strings "Line" in a text file, and copy the previous line (word 1, word 2, word 3) before "Line" and paste them into Excel cells. Please suggest.