Field.Previous property (Word)

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.

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.