How do i extract only pages that contain a specific word

J

jsgoodi

I need a way to separate the pages of a word document that contain th
word "online" from the pages that do not. I can't figure out a way to d
this efficiently without doing a search for the word and individuall
copying and pasting each specific page that contains the word to anothe
document. I need a macro that can do this or maybe something simple
that I can’t think of
 
P

Peter T. Daniels

Word doesn't really have "pages," unless you're going to insert a
manual Page Break where you want them (but that could mess up your
paragraphs.) If you do that, then you could just search for any
occurrence of the word between two page breaks, and select everything
in between.
 
S

Stefan Blom

The only option, as far as I can tell, is in VBA. If you work with
Selection.Find to move the insertion point to each occurrence of "online," then
you can make use of the built-in bookmark "\page" to extract the page where the
word is located. I have no idea how fast this procedure will be in a large
document, though.

--
Stefan Blom
Microsoft Word MVP




"Peter T. Daniels" wrote in message

Word doesn't really have "pages," unless you're going to insert a
manual Page Break where you want them (but that could mess up your
paragraphs.) If you do that, then you could just search for any
occurrence of the word between two page breaks, and select everything
in between.
 

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