Hi,
According to Microsoft documentation, I should be able to set the Axis.MinimumScale and AxisMaximumnScale properties as follows:
However, I cannot make this, or any permutation like it, work and I am forced to activate charts in order to set these properties.
I use:
This really seems to slow things down. At the very least I would like to be able to speed this process up.
Thanks in advance
David
According to Microsoft documentation, I should be able to set the Axis.MinimumScale and AxisMaximumnScale properties as follows:
Code:
With Charts("Chart1").Axes(xlValue)
.MinimumScale = 10
.MaximumScale = 120
End With
I use:
Code:
runSheet.ChartObjects("Chart 1").Activate
ActiveChart.Axes(xlValue).MinimumScale = runSheet.Range("P37").Value
ActiveChart.Axes(xlValue).MaximumScale = runSheet.Range("O36").Value
runSheet.ChartObjects("Chart 2").Activate
ActiveChart.Axes(xlValue).MinimumScale = runSheet.Range("P37").Value
ActiveChart.Axes(xlValue).MaximumScale = runSheet.Range("O36").Value
This really seems to slow things down. At the very least I would like to be able to speed this process up.
Thanks in advance
David