Retrieve range info from chart series data

Christian_Ku

Board Regular
Joined
Sep 10, 2007
Messages
102
Hello,

I've been working on a macro that can alter the series data of all series in a chart. This is particularly convenient when working with a second Y-axis as excel then ALWAYS uses the total available X-points when less data is available on the Y-points.

Example:

I have data from a flow of water from 1-jan to 5-aug. And I have data of a certain compound concentration in that flow in the same time slot (second Y axis). Most convenient would be to give the X-axis all data points from 1-jan to 31-dec and keep adding data to the Y points. However at the start of the year this is inconvenient and gives less accurate graphs (especially when presentation is required in monthly reports etc.).

So now I want to write a macro that adjusts the series data points. I can easily adjust the X data points as these are always from the same column, but this does not count for the Y data points. My question thus is, how can I retrieve the column information from a range used in a series collection?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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