I get the "out of memory" message when I execute my macro. It is too long to post but are there hints to better control the memory usage in Excel 2007? Getting rid of objects or something like this. I don't know how to do this.
best, U
I get the "out of memory" message when I execute my macro. It is too long to post but are there hints to better control the memory usage in Excel 2007? Getting rid of objects or something like this. I don't know how to do this.
best, U
Excel is notorious for this message and chances are, it has nothing to do with your computer's memory. I've had top of the line computers present this message with a 100kb excel program. The key COULD BE your userform and how certain parts get called. Best bet would be to run each event you have listed within your userform and see which one is the culprit. Things to note: Call
userform1.show vbmodeless
after all the textboxes, and other controls are set.
That sometimes works.
...Basically I have a lot of subroutines to format and populate a worksheet depending on criteria I define in a userform.
I agree with @shahkalpesh comment. However, if you're looking for a strategy to help pinpoint the problem, you could try putting message boxes after you call each sub-routine from your main routine and observe excel's memory in the Task Manager.
Perhaps this will help you single out the offending code. Once found, you could post the code in here to resolve your issue.