ResetFormFields Method

Microsoft Word Visual Basic

ResetFormFields Method

       

Clears all form fields in a document, preparing the form to be filled in again.

expression.ResetFormFields

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

Use the ResetFormFields method to clear fields when a document's fields are not locked. To clear fields when a document's fields are locked, use the Protect method.

Example

This example clears the fields in the active document. This example assumes that the active document contains form fields.

Sub ClearFormFields()
    ActiveDocument.ResetFormFields
End Sub