MS Word

I have a set of documents that I want to search of occurrence of some keywords given as a flat file  
I would like to get as an output all the pages in which keywords are matched

For example , consider I have file1 file2 amd file3 as input and my flat file is looking like

then my output might be

love : file1 page 84,file3 page 59
money: file2 page 11,24
influence: file3 page 55
blabla: not found

What is the best way to accomplish that ?
LVL 19
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tony BarkdullTier 2 SupportCommented:
you can search for words within files from the Windows Explorer, Start Menu, Search, Files or Folders, "A word or phrase within a file". Just specify the *.doc with the path is your search
You can also search from Word, from an open word document, File menu, Open.  over on the right of the Open Window, select Tools and then search.  From here you can select which folders and what files.
You didn't mention which version of Word or Windows but the concept will be the same.

Look here
elimesikaAuthor Commented:

I am looking for a programmatic solution since I have many files and the list of keywords is relatively big as well
I could come up witha PERL script if that works for you.
See if Word's inbuilt feature "Insert Index" can help you. If you can get satisfactory results by manually marking entries and then letting Word generate the list, then you can use very simple VBA to set up your entire word list and have Word build the index for you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.