Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2016, 02:44 PM
Maria Hernandez's Avatar
Maria Hernandez Maria Hernandez is offline Can't reset form fields (Word 2013) and conditional formatting Windows 7 32bit Can't reset form fields (Word 2013) and conditional formatting 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
Reply



Similar Threads
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
Can't reset form fields (Word 2013) and conditional formatting Reinstalling Office 2013 after factory reset barryd Office 1 05-17-2013 04:24 PM
Form Fields in Word jwm1346 Word 1 04-17-2012 07:02 PM
Can't reset form fields (Word 2013) and conditional formatting Preventing Form Fields to Reset 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft