Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Why does memory usage expand so much?

I have written VB code to run Excel 2002 in a batch mode so that it does the
following work, say, 100 times. Using a given data file--call it data_i--I
create a worksheet with hundreds of charts on it. I save the workbook, then
copy that to a new file called, say, data_i.xls. Then I clear all the charts
on the worksheet and process data file data_(i+1).

I would expect that the memory usage in Excel would oscillate up and down,
but there is a definite significant upward trend superimposed on the
oscillation. Obviously Excel is caching stuff that I don't need between
iterations in the batch process. As an example I start with an excel file of
size 1 Mbyte, each iteration creates a 45 Mbyte xls file, but after 10-15
iterations the excel program I am running is using 500 Mbytes of memory!

Can anyone suggest a way to cause Excel to flush whatever it is keeping
around?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor memory usage JL Excel Discussion (Misc queries) 0 May 13th 05 04:15 PM
Memory Usage Paul Johnson[_2_] Excel Programming 0 January 28th 05 08:22 PM
Memory usage Jac Tremblay[_3_] Excel Programming 4 October 26th 04 02:33 PM
Obtain memory usage? raj Excel Programming 0 November 18th 03 08:51 PM
VBA & Excel memory usage Kevin Excel Programming 2 August 18th 03 02:32 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"