Is it possible to disable the header on any page that has a Header 1?

| improve this question | | | | |
  • 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? – Shevek Jun 25 '10 at 10:26
  • @Shevek No, I don't want a page header when a heading is present on the page – dassouki Jun 25 '10 at 11:03

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

  1. Loop through each page

  2. Check for a Header 1 style

  3. Insert Section Break at top of current page

  4. Insert Section Break at top of next page

  5. Switch off Same As Previous for BOTH the newly created sections

  6. Clear 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


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

| improve this answer | | | | |
  • 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 :( – dassouki Jun 25 '10 at 13:45
  • @dassouki - I have updated my answer with a response to your comment as I needed more formatting than a comment allows! – Shevek Jun 25 '10 at 13:56
  • When you're doing a new section, the first page of that section is considered first page – dassouki Jun 25 '10 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.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.