Hi everyone,
Here's an easy question for someone... how do I convert this code to a Worksheet Change Event?
Sub ChangeAxisScales()
With ActiveSheet.ChartObjects("AllDataChart").Chart
' Value (Y) Axis
With .Axes(xlValue)
.MaximumScale = ActiveSheet.Range("$G$2").Value
.MinimumScale = ActiveSheet.Range("$G$3").Value
.MajorUnit = ActiveSheet.Range("$G$4").Value
End With
End With
End Sub
Thanks!
Here's an easy question for someone... how do I convert this code to a Worksheet Change Event?
Sub ChangeAxisScales()
With ActiveSheet.ChartObjects("AllDataChart").Chart
' Value (Y) Axis
With .Axes(xlValue)
.MaximumScale = ActiveSheet.Range("$G$2").Value
.MinimumScale = ActiveSheet.Range("$G$3").Value
.MajorUnit = ActiveSheet.Range("$G$4").Value
End With
End With
End Sub
Thanks!