tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I'm not sure this is possible, but I was wondering if anyone knows a way I could increase and decrease the size of a chart according to the number of data lines I'm using?
I have a chart just called "Chart6" (its a horizontal bar chart) it is dynamic and increases and decrease in the number of bars show according to the number of weeks chosen,
So if you 2 weeks it show just 2 bars, but if you choose 52 weeks it show 52 bars,
the problem I have is you could choose 300 weeks? and have 300 bars, now trying to create a chart that looks nice that can cater for 2week and also 300 weeks is proving difficult.
So I was wonder if I could have a macro change the chart height according to the number of bars displayed.
I have the data in Sheet2 column B and could easily do a count to show the number if rows in cell C2
so if this cant be done another way maybe we could do a macro the says "Chart height = C2" and take C2 as 1cm (or any size)?
anyway any ideas please help
Tony
I'm not sure this is possible, but I was wondering if anyone knows a way I could increase and decrease the size of a chart according to the number of data lines I'm using?
I have a chart just called "Chart6" (its a horizontal bar chart) it is dynamic and increases and decrease in the number of bars show according to the number of weeks chosen,
So if you 2 weeks it show just 2 bars, but if you choose 52 weeks it show 52 bars,
the problem I have is you could choose 300 weeks? and have 300 bars, now trying to create a chart that looks nice that can cater for 2week and also 300 weeks is proving difficult.
So I was wonder if I could have a macro change the chart height according to the number of bars displayed.
I have the data in Sheet2 column B and could easily do a count to show the number if rows in cell C2
so if this cant be done another way maybe we could do a macro the says "Chart height = C2" and take C2 as 1cm (or any size)?
anyway any ideas please help
Tony