Field codes: Quote field

The Quote field inserts the specified text into a document.


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

{ QUOTE "LiteralText" }

 Note    A field code tells the field what to show. Field results are what’s shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.



Inserted text, which must be enclosed in quotation marks. It can include any other fields except AutoNum, AutoNumLgl, AutoNumOut, or Symbol.


The following Quote field, with nested If, = (Formula), and Date fields, produces the name of the previous month. For example, if the current month is February, "January" is the field result (field results: Text or graphics inserted in a document when Microsoft Word carries out a field's instructions. When you print the document or hide field codes, the field results replace the field codes.). This is useful for reports (such as sales reports) written after the fact.

{ QUOTE { IF { DATE \@ "M" } = 1 "12" "{= { DATE \@ "M" } -1 }/1/03" \@ "MMMM"} }

Applies to:
Word 2013, Word 2010, Word 2007, Word 2003