In Excel, does anyone know if there any way to assign the chart axis min and max values to cell values?
To clarify, if I have a dataset which can change, I can set up a chart so that:
1 the title comes from a cell on the sheet which reflects what I want it to say about the data displayed
2 the number of points displayed varies as the number of values in the data changes (using a dynamic named range)
3 The axis titles come from a cell as well.
But I'm stuck with Excel's choice of the axis min and max values -which is frequently a pretty bad choice. What I would prefer to do is calculate on the sheet some sensible min & max valus for the axis and assign them to the chart axis limits.
Now I already know how to do this in VBA - which is why I'm not posting the question there. But that would demand that I'd need to trigger the code using, say, the worksheet change event, which I see as a slightly messy solution.
The chart changes in 1 to 3 above could also be done using VBA, but I think that doing it directly from the sheet is a much neater solution for those items. So, is there any way of doing the same kind of thing for the axis limits?
Tony
To clarify, if I have a dataset which can change, I can set up a chart so that:
1 the title comes from a cell on the sheet which reflects what I want it to say about the data displayed
2 the number of points displayed varies as the number of values in the data changes (using a dynamic named range)
3 The axis titles come from a cell as well.
But I'm stuck with Excel's choice of the axis min and max values -which is frequently a pretty bad choice. What I would prefer to do is calculate on the sheet some sensible min & max valus for the axis and assign them to the chart axis limits.
Now I already know how to do this in VBA - which is why I'm not posting the question there. But that would demand that I'd need to trigger the code using, say, the worksheet change event, which I see as a slightly messy solution.
The chart changes in 1 to 3 above could also be done using VBA, but I think that doing it directly from the sheet is a much neater solution for those items. So, is there any way of doing the same kind of thing for the axis limits?
Tony