Extracting data from several Word Docs

Page may contain affiliate links. Please see terms for details.

BenzComander

MB Enthusiast
Joined
Sep 17, 2004
Messages
1,044
Location
Bucks
Car
E320 Avantgarde Estate
Is there a way of extracting names and addreses from several Word documents. The format of the Word documents is the same, and the data is recorded in a Word table in each doc. We want to create a mailing list.

Any help would be appreciated,:D
 
Copy and paste into Excel, remove the unwanted data, save as comma separated values or somthing your mailer understands?

Or if you're feeling handy, save the documents as a text files, and write a Perl script to extract the names from each file using a regular expression into an output file.
 
smartbrabus said:
Copy and paste into Excel, remove the unwanted data, save as comma separated values or somthing your mailer understands?

Or if you're feeling handy, save the documents as a text files, and write a Perl script to extract the names from each file using a regular expression into an output file.

:eek: :confused: A what script, excuse my ignorance!! Copy and paste sounds good though!

Is a Perl script pretty straight froward???

Thanks!
 
Perl is a high level programming language, used a lot for text manipulation purposes. Probably best to avoid, since you may be able to acheive what you need within MS Office...
 
Depends how many documents you're talking about and whether or not the format is truly identical. If the answer is lots and yes then a macro will do it but I guess from your response to the Perl suggestion is that you don't want a solution that involves programming(!)

A quick and dirty approach would be to open a new blank document and then insert each of the Word files you are talking about into this ("Insert File") which will give you all your information in one big document. Then simply edit out all the irrelevant bits and then see if the tables that are left can be exported into Excel for merging as in the link above.
 

Users who are viewing this thread

Back
Top Bottom