Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2003, 07:58 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Out of Memory on Charts

Hi All

I have a VBA program in excel that loads the data values of a pivot table from a list. The info is then copied to another worksheet. A chart is then generated from the data. The pivot table is then refreshed with the next value from the list. and the process is repeated.

I need to plot some 1500 graphs from the data.

I am experiencing an message saying out of memory after a certian number of graphs have been plotted (dependant upon the detail on the graph)

the most graphs I have produced is
112 with no details ie titles legends etc

for a graph with full titles legends and axis labels I get around 40.

I have tried plotting a certain number then copying the worksheet to another workbook saving and closing then carrying on in the original workbook for new data but i still get the error message after 40 graphs have been produced regardles of some being saved in another workbook

Has anyone experienced this problem in the past.

Many Thanks
Jamie
 
Old June 24th, 2003, 09:01 AM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jamie:

I guess many people havehad this problem: the archives will have examples still, no doubt.
Some of the wiser words on (a) memory leakage and (b) deleting finished objects (set [object] = Nothing) have come from Leo Scott. Could be a search through his copious and useful contributions would give you some pointers.

Alf
 
Old July 3rd, 2003, 12:15 PM
Ben Ben is offline
Authorized User
 
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When Excel accesses a chart it creates a new thread to mschart, when another chart is accessed it creates another thread, when you go back to the first chart it creates another thread. This goes on and on until the out of memory meesage. There's no real way around this that I know except to close and reopen Excel everynow and again to reset the mschart threads.
Once a spreadsheet has had the Out of memory message your better off replicating it as it's all downhill from there!

Ben





Similar Threads
Thread Thread Starter Forum Replies Last Post
charts MunishBhatia ASP.NET 2.0 Professional 0 May 28th, 2007 11:52 AM
about charts MunishBhatia ASP.NET 2.0 Professional 1 May 11th, 2007 05:40 AM
charts s_gh Excel VBA 1 May 31st, 2006 09:53 AM
Reporting Charts Brendan Bartley Access 0 May 29th, 2006 08:50 AM
Crystal Charts Owens1013 BOOK: Professional Crystal Reports for VS.NET 0 September 20th, 2004 11:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.