Microsoft KB Archive/99739

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c
 * Microsoft Windows operating system versions 3.0 and 3.1

SUMMARY
If 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:

 Error, cannot open file. Error creating work file. Word cannot save or create this file. Cannot write to file WINWORD.INI. Not enough memory to complete the operation.  Out of memory. NOTE: These error messages can occur when you update any type of field; however, they occur most frequently when you update INCLUDE fields. 

MORE INFORMATION
Because 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

 * 1) Select several INCLUDE fields (up to 25) and update them by pressing F9.
 * 2) Perform a normal save operation (that is, clear the Allow Fast Saves [Fast Save in Word versions 1.x] option before saving the file).

Workaround 2
Use the following macro to update each field individually:

Sub MAIN On Error Goto Bye StartOfDocument ViewFieldCodes 1 While CmpBookmarks(&quot;\Sel&quot;, &quot;\EndOfDoc&quot;) NextField a$ = Selection$ n = InStr(a$, &quot;EMBED&quot;) If n <> 0 Then NextField Else UpdateFields CharRight 1 EndIf Wend MsgBox &quot;You've Reached The End of the Document.&quot; + \ &quot;All fields have been updated. &quot; Bye: End Sub For more information on editing and running WordBasic macros in Word version 2.0, refer to pages 784-786 and 765-767 in the &quot;User's Guide.&quot; WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code &quot;as is&quot; 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.