Compartilhar via


View.ShowFieldCodes Property

Word Developer Reference

True if field codes are displayed. Read/write Boolean.

Syntax

expression.ShowFieldCodes

expression   An expression that returns a View object.

Example

This example hides field codes in the window for Document1.

Visual Basic for Applications
  Windows("Document1").View.ShowFieldCodes = False

This example shows field codes in the first window.

Visual Basic for Applications
  Windows(1).View.ShowFieldCodes = True

This example toggles field codes in the active window.

Visual Basic for Applications
  ActiveDocument.ActiveWindow.View.ShowFieldCodes = _
    Not ActiveDocument.ActiveWindow.View.ShowFieldCodes

See Also