Format chart horizontal axis

joshuafournier

Board Regular
Joined
Mar 3, 2012
Messages
91
Greetings,

I currently have a chart. It collects the data from the same sheet. I only want to display the people involved.
I have upto 10 people. My chart always shows ten
I have a cell to decide how many people but i cant get the chart to follow. Ideally there is a VBA to check or uncheck the category axis labels (people)
I am currently changing the data source for the horizontal axis but it does not work properly. Still shows all 10.

Sheets ("sheet1").select
If (range ("bf1")=1) then
Activesheet.chartobjects ("chart 7").activate
Activechart.seriescollection (1).xvalues="='sheet1'!$bf$12:$bf $12"
Then i just rinse and repeat 10 times to cover the spread of the 10 operators.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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