Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Resources problem with VBA & charts

I've written a short UDF with this line:

gUnit =
ThisWorkbook.Worksheets(sReportSheet).ChartObjects (sChartName).Chart.Axes(xlValue).MajorUnit

When I call the function from a small (27 kb) workbook I get this message:
"Excel cannot complete this task with available resources. Choose less data
or close other applications."

But when I replace that line with...

gUnit = .05

....I don't get the message. And with regard to resources, these problems
come after a reboot with only Excel open.

Additionally, when that line is included, I'm getting very frequent crashes.

Does anyone have any ideas about ways to get around these problems?

Thanks.

Charley




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Resources problem with VBA & charts

Charley -

This kind of thing is frustrating. Any other charts on the worksheet or
in the workbook? Can't be many if it's only 27 kb. Can't be much other
code, either. Is the UDF in a regular module?

The one thing I'm thinking of is that it might be a corrupted worksheet
or workbook (I had one the other day). See if rebuilding the sheet from
a new blank sheet helps.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Charley Kyd wrote:

I've written a short UDF with this line:

gUnit =
ThisWorkbook.Worksheets(sReportSheet).ChartObjects (sChartName).Chart.Axes(xlValue).MajorUnit

When I call the function from a small (27 kb) workbook I get this message:
"Excel cannot complete this task with available resources. Choose less data
or close other applications."

But when I replace that line with...

gUnit = .05

...I don't get the message. And with regard to resources, these problems
come after a reboot with only Excel open.

Additionally, when that line is included, I'm getting very frequent crashes.

Does anyone have any ideas about ways to get around these problems?

Thanks.

Charley




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Resources problem with VBA & charts

How many cells are referencing the UDF?

Tim.


"Charley Kyd" <kyd at incsight dot com wrote in message
...
I've written a short UDF with this line:

gUnit =

ThisWorkbook.Worksheets(sReportSheet).ChartObjects (sChartName).Chart.Axes(xl
Value).MajorUnit

When I call the function from a small (27 kb) workbook I get this message:
"Excel cannot complete this task with available resources. Choose less

data
or close other applications."

But when I replace that line with...

gUnit = .05

...I don't get the message. And with regard to resources, these problems
come after a reboot with only Excel open.

Additionally, when that line is included, I'm getting very frequent

crashes.

Does anyone have any ideas about ways to get around these problems?

Thanks.

Charley






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
Problem with charts nabil Charts and Charting in Excel 0 March 1st 09 07:27 PM
problem printing charts Brian Charts and Charting in Excel 2 May 16th 08 03:21 PM
Problem with charts ildivino Charts and Charting in Excel 6 July 26th 07 09:28 AM
I need to teach people how to use Pivot Tables/Charts - Any resources to assist? shadestreet Excel Discussion (Misc queries) 1 June 7th 06 03:09 PM
Odd problem with charts... narrow! rci Charts and Charting in Excel 0 December 9th 04 05:42 PM


All times are GMT +1. The time now is 08:46 PM.

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

About Us

"It's about Microsoft Excel"