Field codes: Advance field

The Advance field code offsets the starting point of the text that follows to the right or left, up or down, or to a specific horizontal or vertical position.

A field code tells Word what to insert or provide to the document after determining the value of the field code, such as the current date or the number of pages. Usually, the resulting value is simply displayed as part of the document. You can toggle between viewing the result or viewing the field code by pressing Alt+F9 on Windows or fn+Option+F9 on Mac.

Before you use this field, however, you may first want to consider adjusting the text placement using one of the following methods:

  • Select the options you want in the Paragraph dialog box, where you can adjust the horizontal position of text.

    To view the Paragraph dialog box, on Windows, choose the Home tab, and then choose the Paragraph Dialog Box Launcher. On Mac, choose the Format menu, and then choose Paragraph.

  • Select the options you want on the Advanced tab in the Font dialog box, where you can adjust the vertical position of text.

    To view the Font dialog box, on Windows, choose the Home tab, and then choose the Font Dialog Box Launcher. On Mac, choose the Format menu, then choose Font.

Syntax

When you view the Advance field code in your document, the syntax looks like this:

{ ADVANCE [Switches ] }

Switches

The switches used by the Advance field can cause text to overlap. Text will not print if the Advance field moves text to the previous or next page or beyond the print margins of the current page.

\d

Moves the text that follows the field down by the specified number of points. For example, { ADVANCE \d 4 } moves text down 4 points.

\u

Moves the text that follows the field up by the specified number of points.

\l

Moves the text that follows the field to the left by the specified number of points.

\r

Moves the text that follows the field to the right by the specified number of points.

\x

Moves the text that follows the field the specified distance from the left edge of the column, frame, or text box. For example, { ADVANCE \x 4 } starts text 4 points from the left edge.

\y

Moves the text that follows the field to the specified vertical position relative to the page. The entire line of text that contains the field is moved.

Note: Microsoft Office ignores the \y switch if you specify a location outside the page margins or use the switch in tables, text boxes, footnotes, endnotes, annotations, headers, or footers. To see the effect of the \y switch, use Print Layout view.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×