Search Word files with a list of words or phrases

J

Joe

I have a list of 30+ words and phrases that I need to seach in a bunch of
Word documents, in Office 2000 and Office XP. Is there a way to save this
list in a template or some other form so that one can search Word documents
without retyping each word and phrase on the list.

TIA.
 
J

Jay Freedman

Joe said:
I have a list of 30+ words and phrases that I need to seach in a
bunch of Word documents, in Office 2000 and Office XP. Is there a
way to save this list in a template or some other form so that one
can search Word documents without retyping each word and phrase on
the list.

It's certainly possible to write a macro to search each document for each
word/phrase in a list. The article at
http://word.mvps.org/FAQs/MacrosVBA/BatchFR.htm shows how to do a Replace
All operation for one word or phrase in all the documents in a folder. It
could be altered to take input from another document that contains the list,
and repeat the search for each item in the list.

The big question is, what do you want to do when you find one of the
words/phrases in a document? Do you want to do a replacement, or write a
list of the found locations to yet another document, or...??
 
J

Joe

It would be nice to be able to generate a summary for each Word.doc that it
scanned and write each matched word or phrases found with their location in
the document, and save it in a summary document or a summary document for
each file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top