View Single Post
 
Old 01-07-2016, 02:44 PM
Maria Hernandez's Avatar
Maria Hernandez Maria Hernandez is offline Windows 7 32bit Office 2013
Novice
 
Join Date: Jan 2016
Location: Bakersfield, CA
Posts: 1
Maria Hernandez is on a distinguished road
Default

So I'm having a similar issue. I have a Word 2013 document, but I've used the "Rich Text Content Control" button for Data Entry. I've also tried with the Legacy tool box text form. But I can't get them to clear without closing and opening the document. My process is, I type the necessary info, print it, then I want to click a button to reset it (clear all controls) but that Eraser doesn't work, nor does this VBA

Sub ClearFormFields()
Dim FF As FormField
For Each FF In ActiveDocument.FormFields
Select Case FF.Type
Case wdFieldFormTextInput
FF.Result = ""
Case wdFieldFormCheckBox
FF.CheckBox.Value = False
Case wdFieldFormDropDown
FF.DropDown.Value = 1
Case Else
' do nothing
End Select
Next
End Sub

Document is not protected, currently saved as a Macro enable Template.
Reply With Quote