Applies ToWord for Microsoft 365 Word for Microsoft 365 for Mac Word 2024 Word 2024 for Mac Word 2021 Word 2021 for Mac Word 2019 Word 2019 for Mac Word 2016

You can apply text formatting to field results in the same way you format any text in your document (for example, bold, underlined, and so on): select the field code or field result, and apply formatting.

Note: If you update a field, any text formatting that you applied to the field results may be lost. To retain the formatting, include the \* MERGEFORMAT switch in the field code. When you insert fields by using the Field dialog box, the \* MERGEFORMAT switch is included by default.

In addition to text formatting, you can control the format of field results at the field level, with general switches that determine how data in the field is displayed. Depending on the field code, there are three types of general switches:

  • Format switch

  • Numeric format switch

  • Date-Time format switch

The Format field switch (\*) defines how to display field results. The format instructions determine the following:

  • The use of uppercase and lowercase letters

  • Number formats — for example, whether 9 is displayed as ix (roman numerals) or ninth (ordinal text)

  • character formats

Format switches also retain a field result's formatting when the field is updated.

The following is a list of switches and the items that they capitalize:

  • \* Caps    This switch capitalizes the first letter of each word. For example, { FILLIN "Type your name:" \* Caps } displays Luis Alverca even if the name is typed in lowercase letters.

    To select this option in the Field Options dialog box, click Title case.

  • \* FirstCap    This switch capitalizes the first letter of the first word. For example, { COMMENTS \* FirstCap } displays Weekly report on sales.

    To select this option in the Field Options dialog box, click First capital.

  • \* Upper    This switch capitalizes all letters. For example, { QUOTE "word" \* Upper } displays WORD.

    To select this option in the Field Options dialog box, click Uppercase.

  • \* Lower    This switch capitalizes none of the result; all letters are lowercase. For example, { FILENAME \* Lower } displays weekly sales report.doc.

    This switch has no effect if the entire field that contains the switch is formatted as small capital letters.

    To select this option in the Field Options dialog box, click Lowercase.

The following is a list of number switches and their results:

  • \*alphabetic    This switch displays results as alphabetic characters. The result has the same case as the word "alphabetic" in the field code. For example, { SEQ appendix \* ALPHABETIC } displays B (instead of 2), and { SEQ appendix \* alphabetic } displays b.

    To select this option in the Field Options dialog box, click a, b, c,.

  • \*Arabic    This switch displays results as Arabic cardinal numerals. For example, { PAGE \* Arabic } displays 31.

    Notes: 

    • If the Number format setting in the Page Number Format dialog box is not Arabic, this switch overrides the Number format setting.

    • For page numbers only, there is also an ArabicDash format, which displays results as Arabic cardinal numbers surrounded by hyphen characters. For example, { PAGE \* ArabicDash } displays - 31 -.

    To select this option in the Field Options dialog box, click 1, 2, ,3, ....

  • \*CardText    This switch displays results as cardinal text. The result is formatted in lowercase letters unless you add a format switch to specify a different capitalization. For example, { = SUM(A1:B2) \* CardText } displays seven hundred ninety, and { = SUM(A1:B2) \* CardText \* Caps } displays Seven Hundred Ninety.

    To select this option in the Field Options dialog box, click One, Two, Three.

  • \*DollarText    This switch displays results as cardinal text. Word inserts and at the decimal place and displays the first two decimals (rounded) as Arabic numerators over 100. The result is formatted in lowercase letters unless you add a format switch to specify a different capitalization. For example, { = 9.20 + 5.35 \* DollarText \* Upper } displays FOURTEEN AND 55/100.

    To select this option in the Field Options dialog box, click Dollar Text.

  • \*Hex    This switch displays results as hexadecimal numbers. For example, { QUOTE "458" \* Hex } displays 1CA.

    To select this option in the Field Options dialog box, click hex ....

  • \*OrdText    This switch displays results as ordinal text. The result is formatted in lowercase letters unless you add a format switch to specify a different capitalization. For example, { DATE \@ "d" \* OrdText } displays twenty-first, and { DATE \@ "d" \* OrdText \* FirstCap } displays Twenty-first.

    To select this option in the Field Options dialog box, click First, Second, Third, ....

  • \*Ordinal    This switch displays results as ordinal Arabic numerals. For example, { DATE \@ "d" \* Ordinal } displays 30th.

    To select this option in the Field Options dialog box, click 1st, 2nd, 3rd.

  • \*roman    This switch displays results as Roman numerals. The result has the same case as the word "roman" in the field code. For example, { SEQ CHAPTER \* roman } displays xi, and { SEQ CHAPTER \* ROMAN } displays XI.

    To select this option in the Field Options dialog box, click I, II, III,.

The following are character formatting switches and their results:

  • \*Charformat    This switch applies the formatting of the first letter of the field name to the entire result. The result of the following example has bold formatting because the R in REF is bold.

    { REF chapter2_title \* Charformat } displays Whales of the Pacific in bold text.

    To add this switch, type it in the field code or in the Field codes box in the Field dialog box.

  • \*MERGEFORMAT    This switch applies the formatting of the previous result to the new result. For example, if you select the name displayed by the field { AUTHOR \* MERGEFORMAT } and apply bold formatting, Word retains the bold formatting when the field is updated to display a new author name.

    When you insert fields by using the Field dialog box , the \*MERGEFORMAT switch is included by default. You can turn this option off by clearing the Preserve formatting during updates check box in the Field dialog box.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.