Delete Unwanted Sections

M

mmikedm1000

I am trying to write a Macro that will search a word document and find "See
Also" and delete that and all of the following text on that page. Is there a
way to identify that portion of text and delete it? After See Also there is
a page break and the new page always begins with a style Header 1, 2, or 3.
How can I create a find/replace to find the text "See Also" + all text up to
a page break, or Style H1, H2, or H3, which ever is easier?

Any direction is appreciated.


Thanks,
 
J

Jezebel

You don't need a macro. Using Find and Replace with 'Use Wildcards'
checked ---

Search for: See also*^012
Replace with: ^012

^012 is the 'page break' character.
 

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