NumWords

The NUMWORDS field displays the number of words in the document.

Syntax

{ NUMWORDS [Switches] }

Switches

NUMWORDS supports numeric formatting switches (see the "Numeric Formatting Switches" section earlier in this chapter), sequence formatting switches (see the "Sequence Formatting Switches" section earlier in this chapter), and capitalization formatting switches (see the "Capitalization Formatting Switches" section earlier in this chapter).

Examples

To display the number of words in the document, with no commas or other placeholders, use the following field:

{ NUMWORDS \# "0" }

Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.