I have a Word macro that uses a custom dialog to navigate and select multiple files for processing. The dialog is then unloaded and file names are kept in and processed from an array. That portion of the macro works properly and will display the names of all the files selected looping through the array with a msgbox command.
The macro works on RTF files which are inserted into a new document, then another very extensive macro is called where many search and replaces and modification of styles among other things happens.
Everything works perfectly EXCEPT that I get the following message after some files have been processed:
4605: The AutoFormatReplaceQuotes method or property is not available because there is a memory or disk problem.
Commenting out that line errors on the very next lines.
I then have to restart Word and run it again. The files I'm testing are small and only 14 will process at a time. I just started a project that has over 1000 files so I'd like to be able to do more than 14 at a time!
This problem also occurred in Word 2000 (the macro has been around a while and updated here and there).
I've tried using ActiveDocument.UndoClear throughout to free up some memory but to no avail.
Any ideas would be most welcome.
Ken
The macro works on RTF files which are inserted into a new document, then another very extensive macro is called where many search and replaces and modification of styles among other things happens.
Everything works perfectly EXCEPT that I get the following message after some files have been processed:
4605: The AutoFormatReplaceQuotes method or property is not available because there is a memory or disk problem.
Commenting out that line errors on the very next lines.
I then have to restart Word and run it again. The files I'm testing are small and only 14 will process at a time. I just started a project that has over 1000 files so I'd like to be able to do more than 14 at a time!
This problem also occurred in Word 2000 (the macro has been around a while and updated here and there).
I've tried using ActiveDocument.UndoClear throughout to free up some memory but to no avail.
Any ideas would be most welcome.
Ken