Hi I need some code to update a chart axis but cant get it to work, i’m using:
Sub ChangeAxisScales()
Dash2.ChartObjects(“Chart 8”).Activate
With ActiveChart.Axes(xlCategory, xlPrimary)
.MaximumScale = [Axis_Max]
.MinimumScale = [Axis_Min]
End With
End Sub
The graph is on the worksheet Dash2 and the named cells for the scale are on Sheet8. I get a runtime error 440 -Method ‘MaximumScale’ of object ‘Axis’ failed.
Any ideas?