ToggleShowCodes Method
Toggles the display of the fields between field codes and field results.
Note Use the ShowCodes property to control the display of an individual field.
expression.ToggleShowCodes
expression Required. An expression that returns a Fields object.
Example
This example toggles the display of fields in the selection (the equivalent of pressing SHIFT+F9).
Selection.Fields.ToggleShowCodes
This example toggles the display of fields in the active document (the equivalent of pressing ALT+F9).
ActiveDocument.Fields.ToggleShowCodes