![]() ![]() You could, if you wanted to, create a similar button for Word 97/2000 and assign it to the following macro: Or in Word 2002, there is an additional button on the Forms toolbar to reset the form fields (while protection is switched off), without updating any other fields - an eraser. ![]() Note: If you do occasionally want the formfields to reset, you can just select Edit + Select All (or press Ctrl+A), while the document is unprotected, and press F9 (Update Fields). If ActiveDocument.ProtectionType = wdAllowOnlyFormFields ThenĪctiveDocument.Protect Type:=wdAllowOnlyFormFields, noreset:= True ![]() With Dialogs(wdDialogToolsProtectDocument) If oDoc.ProtectionType = wdNoProtection Then If your Addin is only for Word 2002, you won't require the ProtectForm macro, but will still require the ToolsProtectUnprotectDocument one. (Or you can paste it into a template, but if you use an addin, the problem will be fixed regardless of which template is in use.) Remove the horizontal line separating the two Subs, below, after pasting the code in. Just paste the following code into an Addin. You can fix this by intercepting the built-in ToolsProtectUnprotectDocument and ProtectForm commands. But in Word, the form fields are reset whichever you use. The form fields only get reset in Word 2002 if you use the menu. Note that in Word 2002 (Office XP), the problem does not arise if you reprotect the document using the "Protect Form" button of the Forms toolbar: Because of the second problem, users frequently do want to unprotect and reprotect documents, which leaves them with the form fields resetting problem. For more details, see: How to enable the spellchecker in a protected document. This is a double-bind because of the fact that so many Word features are pointlessly disabled, even when only a part of a document is protected for forms. One of the biggest source of complaints from users about Word's forms protection feature (accessed from Tools + Protect or Unprotect document) is that when you unprotect and reprotect a form, all the form fields are reset and the data is lost. How to change the behaviour of Word's document protection, so users’ formfields don't get reset when they unprotect and reprotect ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |