Wierdness when adding data in serieses to x-y charts using V

LLoyd

New Member
Joined
Mar 20, 2002
Messages
4
I am calling a function that ReDims and array and loads it with data from a worksheet.

I am then creating a new series on my graph:

dim pNewSeries as Series
pNewSeries = Charts("MyGraph").SeriesCollection.NewSeries

and loading it with my arrays:

pNewSeries.Values = DynamicArray1 pNewSeries.XValues = DynamicArray2

This works fine, but only if the number of points in my arrays is no greater than 14.

What on Earth is going on?!!


LLoyd
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi Lloyd,

There is a limit to the size of an array that you can assign to the Values or XValues properties. Unfortunately, Microsoft does not document many of these limitations in the helps. In the past when I have wanted to plot data from a large array I have had to write it to a worksheet and assign the Values and XValues properties to the corresponding worksheet ranges. Of course, all of this can easily be done from within VBA, and the data can be written to a hidden worksheet so the worksheet functions as a pseudo-array.
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,266
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top