Hello all,
I have very little experience with macros/VBA, and I need some help with extracting specific text from a large .txt file into excel. (I know similar things have been asked before but I have not been able to find code that I could use for my purpose.)
The "txt" file I have contains library search results from research databases, and contains data looking like this:
TY - JOUR
AB - Experimental intervention was used etc. The results were etc. Several sentences and so on.
AD - Department of example, University of Example.
AN - 11111111
AU - Williams, I
AU - Smith, J
DA - Feb
DB - MEDLINE
(and some other lines, then a blank line and information repeated to about 22000 results).
The stuff I've bolded are what I was hoping to extract, such that column A contains the information after AB, column B contains info after AN, etc. Then next row containing same things for the next search item.
Would anyone be able to help? Thanks in advance.
AM
I have very little experience with macros/VBA, and I need some help with extracting specific text from a large .txt file into excel. (I know similar things have been asked before but I have not been able to find code that I could use for my purpose.)
The "txt" file I have contains library search results from research databases, and contains data looking like this:
TY - JOUR
AB - Experimental intervention was used etc. The results were etc. Several sentences and so on.
AD - Department of example, University of Example.
AN - 11111111
AU - Williams, I
AU - Smith, J
DA - Feb
DB - MEDLINE
(and some other lines, then a blank line and information repeated to about 22000 results).
The stuff I've bolded are what I was hoping to extract, such that column A contains the information after AB, column B contains info after AN, etc. Then next row containing same things for the next search item.
Would anyone be able to help? Thanks in advance.
AM