Error Messages When Updating Too Many Fields at OnceLast reviewed: July 30, 1997Article ID: Q99739 |
The information in this article applies to:
SUMMARYIf you update a large selection of INCLUDE fields (100 or more) at the same time, Word for Windows updates some of the fields, then one or more of the following error messages occur:
MORE INFORMATIONBecause you cannot save the file, you must exit and restart Word and then reopen the file. The following workarounds update a small number of INCLUDE fields at a time and then save the document before updating more fields.
NOTE: Increasing the number of file handles in the CONFIG.SYS file from FILES=60 to FILES=255 (the limit) does not increase the number of INCLUDE fields you can update at once. Workaround 1
Workaround 2Use the following macro to update each field individually:
Sub MAINOn Error Goto Bye StartOfDocument ViewFieldCodes 1 While CmpBookmarks("\Sel", "\EndOfDoc") NextField a$ = Selection$() n = InStr(a$, "EMBED") If n <> 0 Then NextField Else UpdateFields CharRight 1 EndIfWend MsgBox "You've Reached The End of the Document." + \ "All fields have been updated. "Bye: End SubFor more information on editing and running WordBasic macros in Word version 2.0, refer to pages 784-786 and 765-767 in the "User's Guide." WARNING: 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.
REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, pages 88-89, 180, 261, 326, 333 "User's Guide," version 2.0, pages 784-786, 765-767
|
KBCategory: kbmacro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |