Hello All,
I am trying to use VBA to obtain the value of the major and minor units for a chart's vertical axis and then assign that value to range on the worksheet. Here is the code ...
When I execute the code, I get this error message ...
Trying to debug this and running into dead end. Any help appreciated.
Thanks,
Steve
I am trying to use VBA to obtain the value of the major and minor units for a chart's vertical axis and then assign that value to range on the worksheet. Here is the code ...
VBA Code:
:
:
' Set major and minor units
Sheet7.Range("chart1_major").Value = Sheet7.ChartObjects("startyear_rfb_chart").Chart.Axes(x1Value).MajorUnit
Sheet7.Range("chart1_minor").Value = Sheet7.ChartObjects("startyear_rfb_chart").Chart.Axes(x1Value).MinorUnit
:
:
When I execute the code, I get this error message ...
Trying to debug this and running into dead end. Any help appreciated.
Thanks,
Steve