I'm writing a subroutine to format a chart. I want to place the formatting information in cells above each series. Then, I want to select the chart and execute my routine. The routine will take the formatting information and apply it to the chart.
Here is how I am imagining that it will work. Consider the following information in a sheet-
I would select the three columns (numbers 1-6, stuff, and morestuff), make a chart. Then, I would select the chart and apply my subroutine which would look at the numbers above each series and use those to apply various formatting to each series. What I cannot figure out is how to get to my numbers above each series. If you change a value in the series, the chart updates. Change a series name, it updates etc, so it seems to me that the chart knows the location of each series data. Can that location be found in the chart object so that I can use it (e.g., find series1 location, go up 3 cells and retrieve my formatting information)?
Many thanks,
Byron
Here is how I am imagining that it will work. Consider the following information in a sheet-
1 | 2 | |
2 | 3 | |
3 | 4 | |
Stuff | morestuff | |
1 | 0.4063 | 0.2 |
2 | 0.4564 | 0.5 |
3 | 0.4216 | 0.4 |
4 | 0.432 | 0.2 |
5 | 0.3709 | 0.1 |
6 | 0.4129 | 0 |
I would select the three columns (numbers 1-6, stuff, and morestuff), make a chart. Then, I would select the chart and apply my subroutine which would look at the numbers above each series and use those to apply various formatting to each series. What I cannot figure out is how to get to my numbers above each series. If you change a value in the series, the chart updates. Change a series name, it updates etc, so it seems to me that the chart knows the location of each series data. Can that location be found in the chart object so that I can use it (e.g., find series1 location, go up 3 cells and retrieve my formatting information)?
Many thanks,
Byron