The information in this article applies to:
SYMPTOMSCalculation text fields within forms are not updated automatically. RESOLUTIONWord 98 Macintosh EditionUse the Calculate On Exit option located in the Text Form Field Options dialog box. (To display this dialog box, click a form field, and click the Form Field Options button on the Forms toolbar.)Word 6.x and 7.xWARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code 'as is' without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.You cannot manually update a FORM field in these versions of Word. To update text fields which are defined as calculation fields, create a macro using the following steps:
MORE INFORMATIONThe following is a quick macro that serves as a generic for forms. It can be used in place of the macro shown in the Resolution section above.
This macro attempts to update all bookmarks in the document. Calculation
fields must have a bookmark (while other fields do not). If a bookmark
resides within the protected document, an error occurs (which is caught by
the third line of the sample above, and skipped).
This macro will give the impression of on-the-fly updating if it is added to each field; however, this will work slowly if your document contains a large number of calculation fields. If you need to update individual fields, use the SetFormResult command followed by the calculation field bookmark. Additional query words: update updating field fields form forms bookmarks formfield
Keywords : kbmacro kbprg kbualink97 kbdta kbdtacode kbwordvba macword98 winword word6 winword2 word7 word95 |
Last Reviewed: October 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |