ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Out of memory error (https://www.excelbanter.com/excel-programming/288863-out-memory-error.html)

JJ[_6_]

Out of memory error
 
Good Day,

I'm trying to use Excel to generate a report on the 30 Dow Jones Industrials
that contains

symbol date closingprice MovingAvg. The worksheet contains a workarea
that I read

the historical data into, calculate the MA and then use Paste Special Value
to bring the

data to the report area, after which I delete the input data and repeat the
sequence for

the next stock.


The problem appears to be that no storage is released when deleting the
input data and

after 15-20 stocks are done, the Out of Memory condition occurs.


Does Excel release memory when a range is deleted ? Even if it's reused in a
subsequent

operation? If Excel does not automatically release memory is there an
explicit instruction

I can issue such as a VB GC (garbage collection) ?


The entire worksheet occupies cells A1.T15000 but cells A40.I15000 are
unused. Would it

help to use only cells A1.I15050? In other words, does Excel use memory for
cells that are

blank?



Thanks for your time, J e r



JJ[_6_]

Out of memory error
 
Problem resolved, it was a defective data file.


J e r




All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com