Hello,
i'm a creating a sheet for displaying different ranges of values. With a button i display these values in a chart.
My problem is that the scaling of Y-axis in the chart is not done automaticaly sometimes.
The values on the Y-axis vary from eg 0,01 in one case to 5000 in an other case.
In some of the cases the scaling is adjusted to around the minimal and maximal value of the data and in other cases it's displayed from 0 to 5000 with ticks of 100.
I have this piece of code in a macro:
With ActiveChart.Axes(xlValue)
.MinimumScaleIsAuto = True
.MaximumScaleIsAuto = True
End With
But this doesn't always seem to work.
CAn anybody help me with this problem?
Please be very specific in your answer, because I'm quite new to VB.
Thanks for your help so far.
i'm a creating a sheet for displaying different ranges of values. With a button i display these values in a chart.
My problem is that the scaling of Y-axis in the chart is not done automaticaly sometimes.
The values on the Y-axis vary from eg 0,01 in one case to 5000 in an other case.
In some of the cases the scaling is adjusted to around the minimal and maximal value of the data and in other cases it's displayed from 0 to 5000 with ticks of 100.
I have this piece of code in a macro:
With ActiveChart.Axes(xlValue)
.MinimumScaleIsAuto = True
.MaximumScaleIsAuto = True
End With
But this doesn't always seem to work.
CAn anybody help me with this problem?
Please be very specific in your answer, because I'm quite new to VB.
Thanks for your help so far.