I have a document with various headings. I would like to be able to do the following:
- Find a Specific Heading from a "Heading 1" style.
- Delete the heading, the content following the heading to and including the next page break.
So delete: heading + its content + page break
I know how to find text using a Word macro but I do not know how to search only the headings.
Your help is greatly appreciated.
I know how to find text using a Word macro but I do not know how to search only the headings
- same as searching for text, but with setting the.Style
property of theFind
object to the name of the style. – GSergPage Break
? – L42