[FONT="]Hi All!
First lots of thanks to this wonderful forum and to anyone who would be able to help me in this difficult task
Here it comes:
I am now working on my PhD thesis, in one project I have received a CD with about 1000 separate word documents. Each document is about 30 pages long
In each of those documents there are data about one participant in my study (so in total 1000 documents for 1000 participants)
The data in the documents are entered in two ways: there are either "Text form fields" or just normal text
So the task is to try to import data from those 1000 documents to a Db by means of VBA or a Macro without needing to do the job manually
When it comes to Text form fields, I have found this very interesting site that you might find interesting too
http://gregmaxey.mvps.org/Extract_Form_Data.htm
It worked as a charm when it comes to form fields
BUT
the problem comes when trying to extract "normal text" ie text entered in word without a form field
I can identify the needed text by searching for a word combination like, the needed text will be the first setting of numbers that come after the sentence "The study subject received a dose of"
So the original text in the file might be:
"The study subject received a dose of 25mg"
"The study subject received a dose of about 25mg"
My macro or VBA should practically search for the string ""The study subject received a dose of" then look for the first numerical after it which in this case should return "25"
Guys, is this doable?? It would really save my life, I mean going through 30000 pages manually would take ages, but if it could be done with VBA then it would only take some fun programming and the click of a button
Appreciate all help
Regards[/FONT]
First lots of thanks to this wonderful forum and to anyone who would be able to help me in this difficult task
Here it comes:
I am now working on my PhD thesis, in one project I have received a CD with about 1000 separate word documents. Each document is about 30 pages long
In each of those documents there are data about one participant in my study (so in total 1000 documents for 1000 participants)
The data in the documents are entered in two ways: there are either "Text form fields" or just normal text
So the task is to try to import data from those 1000 documents to a Db by means of VBA or a Macro without needing to do the job manually
When it comes to Text form fields, I have found this very interesting site that you might find interesting too
http://gregmaxey.mvps.org/Extract_Form_Data.htm
It worked as a charm when it comes to form fields
BUT
the problem comes when trying to extract "normal text" ie text entered in word without a form field
I can identify the needed text by searching for a word combination like, the needed text will be the first setting of numbers that come after the sentence "The study subject received a dose of"
So the original text in the file might be:
"The study subject received a dose of 25mg"
"The study subject received a dose of about 25mg"
My macro or VBA should practically search for the string ""The study subject received a dose of" then look for the first numerical after it which in this case should return "25"
Guys, is this doable?? It would really save my life, I mean going through 30000 pages manually would take ages, but if it could be done with VBA then it would only take some fun programming and the click of a button
Appreciate all help
Regards[/FONT]