View Single Post
 
Old 09-10-2012, 06:22 AM
jperez84 jperez84 is offline Windows XP Office 2007
Novice
 
Join Date: Sep 2012
Posts: 21
jperez84 is on a distinguished road
Default Find, copy and paste into a new page

Good morning,

I'm trying to create a macro that will find a certain word, let's say "test" and then it will copy all the text between 2 certain points(***** and *****) in the doc. Then it will paster into a new doc called "test" and number each one. Below is an example.

*****
hello
goodbye
test
nice extremely cold
*****
Not all instances are this simple. Some only have 5 lines of text between the "*****", as the example above, ans some have up to 30 lines of text.

Also, if possible I would like each instance to be pasted into a new page within the same doc after the first instance is found. It would also give a total on the first line of the doc.

Thanks in advance.
Reply With Quote