![]() |
|
#1
|
||||
|
||||
![]()
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. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to keep formatted form fields after mail merge or replace text with formatted form fields | jer85 | Word VBA | 2 | 04-05-2015 10:00 PM |
![]() |
barryd | Office | 1 | 05-17-2013 04:24 PM |
Form Fields in Word | jwm1346 | Word | 1 | 04-17-2012 07:02 PM |
![]() |
PosseJohn | Word VBA | 4 | 07-15-2011 09:44 PM |
Form fields in Word messed up | mba | Word VBA | 0 | 02-07-2010 09:54 PM |