automating search for text and print current page only

P

Peekabeaux

I am hoping some one out there can help me. I work with very large word
documents ( 6,000 plus pages) I need to search for a certain item that is
printed on each page and then print just that page. The item I am looking for
af course cahnges with each page so the list of these items could range from
10 to 100. This list would be on a seperate file ( text or excel format). I
am trying to find out how to automate Word to read each line in this file and
find the item listed in the main document and then just do a print current
page.
Any help would be appreciated, as right now I do have a macro to print just
the current page but am still having to manually do a find for each of the
items.

Thanks

Peek
 
J

Jean-Guy Marcil

Peekabeaux was telling us:
Peekabeaux nous racontait que :
I am hoping some one out there can help me. I work with very large
word documents ( 6,000 plus pages) I need to search for a certain
item that is printed on each page and then print just that page. The
item I am looking for af course cahnges with each page so the list of
these items could range from 10 to 100. This list would be on a
seperate file ( text or excel format). I am trying to find out how to
automate Word to read each line in this file and find the item listed
in the main document and then just do a print current page.
Any help would be appreciated, as right now I do have a macro to
print just the current page but am still having to manually do a find
for each of the items.

What if the item is found on more than one page?
What if many items are on the same page?
Do you need to print the pages multiple times?

What Word version?

Are you looking for someone to write the code for you or do you have some
code?
Unless someone happens to have exactly that kind of code in its files, it
can be complicated code to write (Open a concordance file, iterate the items
in that file, do a search for each item in another file, check if a page has
already been printed when an item is found, etc.)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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