Header and Footer Codes

A header is a title printed at the top of the page. A footer is a title printed at the bottom of the page.

You can customize headers and footers for printed pages with the Page Setup command. You do this by using the following codes in the Header and Footer text boxes:

Table 5.4: Header and Footer Codes

Code

Result

&L

Left-align characters that follow. This is the default.

&C

Center characters that follow.

&R

Right-align characters that follow.

&/

Move to the next line.

&B

Print the characters that follow in Bold.

&I

Print the characters that follow in Italic.

&U

Print the characters that follow in Underline style.

&D

Print the current Date.

&T

Print the current Time.

&F

Print the File name.

&P

Print the Page number.

&N

Print the total Number (N) of pages in the document. For example, in a file 12 pages in length, you would type Page &P of &N to have Page 1 of 12, Page 2 of 12, Page 3 of 12, etc., printed on the pages.

&&

Print a single ampersand (&) as a literal character rather than as an instruction.

For example, to print “Confidential” at the left margin, center the page number, and print current date at the right margin, type:

&LConfidential&C&P&R&D