Options.PrintFieldCodes Property

Word Developer Reference

True if Microsoft Word prints field codes instead of field results. Read/write Boolean.

Syntax

expression.PrintFieldCodes

expression   An expression that returns an Options object.

Example

This example sets Word to print field codes, and then it prints the active document.

Visual Basic for Applications
  Options.PrintFieldCodes = True
ActiveDocument.PrintOut

This example returns the current status of the Field codes option on the Print tab in the Options dialog box (Tools menu).

Visual Basic for Applications
  temp = Options.PrintFieldCodes

See Also