G
Suppose I have three range objects, call them XRange, DataRange and
DataLabelsRange.
- XRange is a series of months, e.g. Jan 2005, Feb 2005 ... etc.
- DataRange contains several series of data for each month. For
example data for North Sales, South Sales, etc.
- DataLabelsRange contains the actual labels "North Sales", "South
Sales", etc.
The goal is use VBA to create a chart from this ranges with the months
on the x axis, lines for each of the series on the y axis, and a legend
labeling the lines for you. Pretty simple, no? But after goofing
around with the seriescollection object for a couple of hours I can't
figure it out.
For reasons I won't go into, I can't just select these three ranges as
one block and have Excel figure out the rest. I need to take these
three separate ranges and somehow meld them into a graph using VBA.
Any advice would be much appreciated--thanks!
DataLabelsRange.
- XRange is a series of months, e.g. Jan 2005, Feb 2005 ... etc.
- DataRange contains several series of data for each month. For
example data for North Sales, South Sales, etc.
- DataLabelsRange contains the actual labels "North Sales", "South
Sales", etc.
The goal is use VBA to create a chart from this ranges with the months
on the x axis, lines for each of the series on the y axis, and a legend
labeling the lines for you. Pretty simple, no? But after goofing
around with the seriescollection object for a couple of hours I can't
figure it out.
For reasons I won't go into, I can't just select these three ranges as
one block and have Excel figure out the rest. I need to take these
three separate ranges and somehow meld them into a graph using VBA.
Any advice would be much appreciated--thanks!