NormalViewHeaderArea

Syntax

NormalViewHeaderArea [.Type = number] [, .FirstPage = number] [, .OddAndEvenPages = number] [, .HeaderDistance = text] [, .FooterDistance = text]

Remarks

Opens the header/footer pane (normal and outline views) or displays the header
or footer area (page layout view) and sets options for headers and footers. You can display the header/footer pane to edit any type of header or footer, regardless of the number of pages in the document.

The arguments for the NormalViewHeaderArea statement correspond to the options in the Header/Footer dialog box in Word version 2.x. Note that these options are usually set using FilePageSetup in Word version 6.0 and 7.0. Although you can retrieve information from the NormalViewHeaderArea dialog record, you cannot use this statement to display the Word version 2.x dialog box.

Argument

Explanation

.Type

Specifies whether to display the header or footer area. The possible values of .Type depend on the settings of .FirstPage and .OddAndEvenPages.

If both .FirstPage and .OddAndEvenPages are set to 0 (zero):

0 (zero) Header

1 Footer

If .FirstPage is set to 1 and .OddAndEvenPages is set to 0 (zero):

0 (zero) Header

1 Footer

2 First header

3 First footer

If .FirstPage is set to 0 (zero) and .OddAndEvenPages is set to 1:

0 (zero) Even header

1 Even footer

2 Odd header

3 Odd footer

If both .FirstPage and .OddAndEvenPages are set to 1:

0 (zero) First header

1 First footer

2 Even header

3 Even footer

4 Odd header

5 Odd footer

.FirstPage

If 1, allows a header or footer for the first page that differs from the rest of the pages in the section.

.OddAndEvenPages

If 1, allows one header or footer for even-numbered pages and a different header or footer for odd-numbered pages.

.HeaderDistance

The distance from the top of the page to the header.

.FooterDistance

The distance from the bottom of the page to the footer.


See Also

FilePageSetup, ViewFooter, ViewHeader