Compartilhar via


Field.Previous Property

Word Developer Reference

Returns the previous object in the collection. Read-only.

Syntax

expression.Previous

expression   A variable that represents a Field object.

Example

This example displays the field code of the second-to-last field in the active document.

Visual Basic for Applications
  Set aField = ActiveDocument _
    .Fields(ActiveDocument.Fields.Count).Previous
MsgBox "Field code = " & aField.Code

See Also