ResetFormFields Method
TOC
Collapse the table of content
Expand the table of content

Document.ResetFormFields Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .ResetFormFields

expression Required. A variable that represents a Document object.

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.

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
Show:
© 2016 Microsoft