This is probably a basic question, but I have been having a hard time find a good solution for my issue.
I am trying to create a chart programmatically in VBA. The chart needs to have 3 series, with 2 series being xlColumnStacked and 1 series being xlColumnClustered. The idea is to have 1 series being of the xlColumnClustered type, while the other two are stacked. This will result a side by side comparison of the two columns.
Is this possible?
I have tried changing each series type, however the result is the entire chart type will change based on the last series that was changed. (e.g. -> Last series added is xlStacked, all three series are stacked)
I am using Excel 2007 and the embedded VBA macro editor.
Can you do this manually through the UI? Is what you’re doing in code logically the same as you do in the UI? Using the UI, you need to select the specific series whose type you want to change. Are you doing this in code rather than setting the type of the whole chart?
For anything to do with Excel charts, I would recommend John Peltier’s site