I have a form which loops through a recordset, opens an Excel template, moves the data, and then saves the Excel file. As this process occurs, I can see my system resources slowly drain until I receive an system warning that my resources are dangerously low.
I've gone back through the vba code to make sure I had all my objects released after use. Everything appeared fine. Additionally, I took the process step by step to ensure the resources were being released. Everything appeared fine.
So, I re-ran the code and again, my system resources were rapidly being drained.
Here's what's interesting. When I break into the code (using Ctrl + Break) and automatically go to the vb editor, my system resources jump back to where they were prior to running the code. In fact, I can resume the code and let it run until the resources drop dangerously low again.
Does anyone have an idea what is occuring here and how to prevent the loss of resources as this code processes?
-illini
I've gone back through the vba code to make sure I had all my objects released after use. Everything appeared fine. Additionally, I took the process step by step to ensure the resources were being released. Everything appeared fine.
So, I re-ran the code and again, my system resources were rapidly being drained.
Here's what's interesting. When I break into the code (using Ctrl + Break) and automatically go to the vb editor, my system resources jump back to where they were prior to running the code. In fact, I can resume the code and let it run until the resources drop dangerously low again.
Does anyone have an idea what is occuring here and how to prevent the loss of resources as this code processes?
-illini