Hello All,
I have a complex WorkBook which uses many macros. One of them changes a chart's axis min/max via a SpinButton. This scripts works in Excel 2007/2010 and 2013 up until the recent December update. It doesn't work anymore. The spin button points to the following
typical code on the same sheet as the button:
Option Explicit
Dim aY, bY As Single ' Y Max & Min
Private Sub SpinButton1_Change()
aY = Sgn(SpinButton1.Value) * (0.1 * Abs(SpinButton1.Value)) ^ 2.3 * 1.03
With ActiveSheet.ChartObjects("Chart_s1").Chart
.Axes(xlValue, xlSecondary).MaximumScale = aY
End With
End Sub
Since the last update clicking on the spin button has no effect. Also when you view the spin button's properties, the min/max values are missing (but are still there in Excel 2007).
Another macro which modifies chart axes aborts with Run time error 438 "Object doesn't support this property or method" with
ActiveSheet.SpinButton1.Value = 100 being the problem code.
It seems that the latest update has broken something in VBA? Can anyone shed some light on this please?
Thank you