I'm running Excel 97 on Windows NT with 512Mb RAM.
My spreadsheet application "empty" contains 76 sheets and 48 charts and tops out at about 3.3Mb.
The user adds products to this WB which causes 2 data sheets, 1 pivot table, 1 chart to be cloned which is where the user's data will be imported to. The 4 sheets cloned are about 1/4mb in size empty.
I can clone 9 sets of sheets without problem.
On the 10th set, it consistently crashes on the same line...
Sheets(Array("999", "999 Pivot").Copy After:=Sheets(Sheets.Count)
This line was executed 9 times before it crashed (Dr. Watson error and everything!).
But....
If I clone 9 sets, save the workbook, exit Excel, re-open the workbook, it lets me add 8 more sets before it crashes agian.
Sounds suspiciously like a memory problem but I cannot figure it out. I do destroy all objects after using them.
Charts do use autosizing but it is necessary and all this is happening even before I import any data.
Is there a limit to the number of sheets/pivot tables/charts you can have in a workbook?
Any response would be great!
amm
My spreadsheet application "empty" contains 76 sheets and 48 charts and tops out at about 3.3Mb.
The user adds products to this WB which causes 2 data sheets, 1 pivot table, 1 chart to be cloned which is where the user's data will be imported to. The 4 sheets cloned are about 1/4mb in size empty.
I can clone 9 sets of sheets without problem.
On the 10th set, it consistently crashes on the same line...
Sheets(Array("999", "999 Pivot").Copy After:=Sheets(Sheets.Count)
This line was executed 9 times before it crashed (Dr. Watson error and everything!).
But....
If I clone 9 sets, save the workbook, exit Excel, re-open the workbook, it lets me add 8 more sets before it crashes agian.
Sounds suspiciously like a memory problem but I cannot figure it out. I do destroy all objects after using them.
Charts do use autosizing but it is necessary and all this is happening even before I import any data.
Is there a limit to the number of sheets/pivot tables/charts you can have in a workbook?
Any response would be great!
amm