CatyH
Board Regular
- Joined
- Jun 27, 2017
- Messages
- 84
- Office Version
- 365
Row labels A2:A4
Column headers B1:AE1
Data B2:AE4
The number of columns of data will be a parameter/variable.
When I need to use one column of data, the graph should draw with data B2:B4
When I need to use two columns of data, the graph should draw with data B2:C4... etc
I also want to resize the graph... so I made all this happen with CASE statements in VB.
Only problem... My original graph has the row labels (A2:A4) as the three categories for a clustered column chart... with the goal of having the columns clustered in those three groups.
But when I run the macro and the graph re-draws, it changes to making the _columns_ be the main clusters (e.g. if I have 7 columns of data, then I'll have 7 clusters, each with three columns) but what I want is to keep the three clusters and have the variable number of columns within each.
I've tried recording macros and inspecting the code to figure out where the graph properties exist... but there doesn't appear to be a way to force the x/y column/row designations....
Any help is GREATLY APPRECIATED! Thank you in advance!
Column headers B1:AE1
Data B2:AE4
The number of columns of data will be a parameter/variable.
When I need to use one column of data, the graph should draw with data B2:B4
When I need to use two columns of data, the graph should draw with data B2:C4... etc
I also want to resize the graph... so I made all this happen with CASE statements in VB.
Only problem... My original graph has the row labels (A2:A4) as the three categories for a clustered column chart... with the goal of having the columns clustered in those three groups.
But when I run the macro and the graph re-draws, it changes to making the _columns_ be the main clusters (e.g. if I have 7 columns of data, then I'll have 7 clusters, each with three columns) but what I want is to keep the three clusters and have the variable number of columns within each.
I've tried recording macros and inspecting the code to figure out where the graph properties exist... but there doesn't appear to be a way to force the x/y column/row designations....
Any help is GREATLY APPRECIATED! Thank you in advance!