Edit

Share via


FormField.Previous property (Word)

Returns the previous form field in the collection. Read-only.

Syntax

expression.Previous

expression A variable that represents a FormField object.

Example

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

Set aField = ActiveDocument _ 
 .FormFields(ActiveDocument.FormFields.Count).Previous 
MsgBox "Form 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.