Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Reset form
Hi;
Please advice whether there is any way for me to reset all the fields to be empty when I click on a RESET button? I wish to allow the user to reset the form when they want to fill in the form for the subsequest request without the need to open a fresh form again. Can anyone guide me on how to get this done in a form? Thanks in advance. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Reset form
Use a macro in the document template run from your toolbar button
Sub ClearForm() Dim oFld As FormFields Set oFld = ActiveDocument.FormFields For i = 1 To oFld.Count If oFld(i).Type = wdFieldFormDropDown Then oFld(i).Result = " " Else oFld(i).Result = "" End If Next End Sub -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org ah wrote: Hi; Please advice whether there is any way for me to reset all the fields to be empty when I click on a RESET button? I wish to allow the user to reset the form when they want to fill in the form for the subsequest request without the need to open a fresh form again. Can anyone guide me on how to get this done in a form? Thanks in advance. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Reset form
Hi;
Thanks for your prompt response. I've tried this, but it will empty all the default text that I've placed for all the text field as well as the the statement "Please select from list" that I've put as the 1st statement for each of the drop down list when I click on the "RESET" button. Can all these still be shown? Besides, it takes quite some time for the system to reset all the field. Can this be speed up? Thanks "Graham Mayor" wrote: Use a macro in the document template run from your toolbar button Sub ClearForm() Dim oFld As FormFields Set oFld = ActiveDocument.FormFields For i = 1 To oFld.Count If oFld(i).Type = wdFieldFormDropDown Then oFld(i).Result = " " Else oFld(i).Result = "" End If Next End Sub -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org ah wrote: Hi; Please advice whether there is any way for me to reset all the fields to be empty when I click on a RESET button? I wish to allow the user to reset the form when they want to fill in the form for the subsequest request without the need to open a fresh form again. Can anyone guide me on how to get this done in a form? Thanks in advance. |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Reset form
If you want to start a new form with all your default text in place, then it
would be much simpler (and faster) to save the form as a template and create a new form document from that template. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org ah wrote: Hi; Thanks for your prompt response. I've tried this, but it will empty all the default text that I've placed for all the text field as well as the the statement "Please select from list" that I've put as the 1st statement for each of the drop down list when I click on the "RESET" button. Can all these still be shown? Besides, it takes quite some time for the system to reset all the field. Can this be speed up? Thanks "Graham Mayor" wrote: Use a macro in the document template run from your toolbar button Sub ClearForm() Dim oFld As FormFields Set oFld = ActiveDocument.FormFields For i = 1 To oFld.Count If oFld(i).Type = wdFieldFormDropDown Then oFld(i).Result = " " Else oFld(i).Result = "" End If Next End Sub -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org ah wrote: Hi; Please advice whether there is any way for me to reset all the fields to be empty when I click on a RESET button? I wish to allow the user to reset the form when they want to fill in the form for the subsequest request without the need to open a fresh form again. Can anyone guide me on how to get this done in a form? Thanks in advance. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
reset cursor | Microsoft Word Help | |||
Restart Numbering - doesn't always reset even after reset work-a-r | Microsoft Word Help | |||
What does the Reset Field Form do? | New Users | |||
Cannot find submit or reset button for a form | Microsoft Word Help | |||
How do I reset my keyboard | Microsoft Word Help |