basshost.blogg.se

Spell check microsoft word form fields
Spell check microsoft word form fields










spell check microsoft word form fields

You can assign this macro to a toolbar button or menu. The following sample Visual Basic macro allows you to specify which sections to protect while maintaining previous form field values.

spell check microsoft word form fields

' when Protect Document or Unprotect Document ' Sets protection for the active document NOTE: The name of this macro must be ToolsProtectUnprotectDocument. When you run this macro, it will reprotect the active document while maintaining previous form field values. The following sample Visual Basic macro protects the active document without displaying the Protect dialog box. If ActiveDocument.ProtectionType = wdNoProtection ThenĪctiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True ' when the Protect Form button on the forms ' Toggles protection for the active document NOTE: The name of this macro must be ProtectForm. The third macro allows you to specify which sections to protect while maintaining previous form field values. The second macro runs when you click either Protect Document or Unprotect Document on the Tools menu. The first macro runs when you click the Protect Form button on the Forms toolbar. The following three macros can be used to ensure that your form field values are not reset to their defaults when you reprotect the form. The macros can be stored in the actual form template to allow you to manually unprotect and reprotect the form while preserving the form field contents. The following Microsoft Visual Basic for Applications macros (Sub procedures) protect your form without causing you to lose the text that you entered into a form field. Method 1: Alter the Protect/Unprotect Command Functionality

spell check microsoft word form fields

For more information about the support options available from Microsoft, please see the following page on the World Wide Web: If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. Unprotect a forms document, perform a spell check, and retain information in the form fields when you reprotect the form. Retain information you type into a form field when you protect a form. This article describes methods that allow you to: The information in this article applies to: WD97: Form Fields Lose Text When Protected for Forms












Spell check microsoft word form fields