Extract and print only paragraphs having highlighted words
Posted on 2014-01-21
I need suggestions for Word 2013 macros to help me, as follows:
I'm using Word in Office 2014 under Win 8.1 to do research involving a very long document (hundreds of pages) where I need to focus my searches on pages and/or paragraphs that contain at least one (of up to 20) highlighted words.
(a) The goal is produce a 2nd document for printing only the paragraphs where one or more of the highlighted (target) words occur.
(b) Targeted paragraphs copied to the 2nd doc. should be inserted in their original sequence, without forced page breaks, but with a couple of blank lines in between (with all targeted words remaining highlighted). For each paragraph copied into the 2nd doc, I really need to know what page it came from in the original doc. Perhaps the easiest way to capture this page info. might be to grab it from the location of the first word in each paragraph before the paragraph is copied to the 2nd doc. That page number should be printed in the line before the paragraphs.
(c) Printing must not be automatic, but under my manual control, after the macro has completed and I am able to inspect the results.