Hi there all!
Sorry for the long explanation, but it a slightly complext situation.
I am running MS Office 2000 Premium on Windows 98 on Pentium III class machines with 128Mb RAM.
Here is the scenario:
I have a 100 to 105 page RTF document containing a statement for x number of people, which is generated by our financial system. I open the RTF documentin Word and then run the VBA code.
My VBA code in Word starts off by opening another Word document which contains a handling table. The handling table contains an entry for each person in the financial report. These reports can be delivered to them by
either be email or fax or snail mail (printed and then posted). It also creates a new document for reporting purposes.
The VBA code then coping and pasting the first page to a new document and replaces some lines which where left out when the financial system exported the data to the RTF document. It then picks up a unique identifier for the
page (the person’s ID number) and the person’s name.
It then finds the corresponding ID number in the handling table and picks out the corresponding action (email/fax/print) out of the table and performs
the appropriate action. and closes and saves the new document. The code then switch to the report document and an entry is written to it.
(Basically action taken, time done, person’s ID number and name).
The rest of the pages in the master RTF document is then processed.
My problem is that if the machine has anything less than 85% to 90% free system resources and 85% to 90% free user resources, the machine runs out of resources and totally freezes up.
My question is: Is there a way to free up system and user resources while processing. Anyone got any good suggestions?
Looking forward for some helpful pointers!
James
(EMail address: james.nesbitt@icon.co.za)