The information in this article applies to:
SUMMARYFields in a document protected for forms may not be updated when you fill out the form. This article describes four methods you can use to update regular fields or automatically insert and update the result of one form field into another area of a form. MORE INFORMATIONMethod 1: Use a MacroMicrosoft 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. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. 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. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp The following macro can be used as an on-exit macro for the first form field called "Text1" so that the information entered into this field will automatically appear in the form field called "Text2." Alternatively, the macro can be used as an on-entry macro for the second form field called Text2. When you tab to this second field, the result of the first form field is placed automatically as the field result of this second field.
In this example, "Text1" and "Text2" are bookmarks. The Text1 bookmark
represents the field that contains the information you want to
automatically appear in the field represented by the Text2 bookmark.
For each field that receives the information automatically, clear the Fill- In Enabled check box in the Text Form Field Options dialog box. This minimizes the chance of accidentally modifying the field result. Method 2: Reference a Form Field Entry Elsewhere in a DocumentThere may be times that you may want to reference a form field entry elsewhere in a document.To repeat a form field entry using a reference field, follow these steps:
Method 3: Place the REF Field in an Unprotected Section of the DocumentIf you choose this option, the macro will update the fields in the unprotected section or you can create a separate exit macro to go to that specific field and update it.To place REF fields in unprotected sections of your document, follow these steps:
Q114237 WD: REF Field Creates Duplicate Drop-Down List in Protected FormQ117209 WD: How to Use AutoText As a Result of a Form Field Entry REFERENCES"Microsoft Word User's Guide," version 6.0, pages 305-326, 731- 755 Additional query words: forms formfield ref unprotect wordbasic
Keywords : kbdta kbdtacode wordnt kbmacroexample kbfield winword ntword macword kbform word6 word7 word95 |
Last Reviewed: July 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |