Is it possible to disable the header on any page that has a Header 1?
-
do you mean remove all Heading 1 styles from a document or switch off the Page Header where a Heading 1 style exists on a page?– ShevekCommented Jun 25, 2010 at 10:26
-
@Shevek No, I don't want a page header when a heading is present on the page– dassoukiCommented Jun 25, 2010 at 11:03
2 Answers
The only way to do this automatically will be to write a macro. This is a bit beyond my macro skills, but this is the process you will need to follow as the only way to switch off a Header or Footer on a single page is by using Sections
Loop through each page
Check for a
Header 1
styleInsert
Section Break
at top of current pageInsert
Section Break
at top of next pageSwitch off
Same As Previous
for BOTH the newly created sectionsClear the
Header
of the current page
You may be able to get some help creating a macro on StackOverflow
You could also follow this process manually.
EDIT: In response to Comment:
Not quite - the "different footer and header" setting is only applicable to "odd and even" or "first page" e.g.:
page 1 has header a, all others have header b
or
even pages have header a, odd pages have header b
The only way to mix and match headers is to use section breaks with Same As Previous
switched off
-
Well with a section break, you chance the page setup to be "different footer and header", anyways, I was hoping there is an easier way of doing this :(– dassoukiCommented Jun 25, 2010 at 13:45
-
@dassouki - I have updated my answer with a response to your comment as I needed more formatting than a comment allows!– ShevekCommented Jun 25, 2010 at 13:56
-
When you're doing a new section, the first page of that section is considered first page– dassoukiCommented Jun 25, 2010 at 16:13
I have not tried it to see if it works, but in the "Replace" feature (as in Find and Replace) there is a way to search for a style including Heading 1. You could search by style and Replace with nothing or whatever you like instead.