Is it possible to get a charts maximum and minimum values to show up in designated worksheet cells.
Here is what I have so far for the maximum scale:
Private Sub CommandButton2_Click()
Range("A1") = Worksheets("SARS").ChartObjects("Chart 6").Chart.Axes(xlCategory).MaximumScale.Value
End Sub
The error message says it is missing an object.
What am I leaving out?
(The ultimate goal is to have the axes mim/max values for chart1 on Sheet 1 to be transferred to Chart 2 Sheet 2 when I click the Command button)
Here is what I have so far for the maximum scale:
Private Sub CommandButton2_Click()
Range("A1") = Worksheets("SARS").ChartObjects("Chart 6").Chart.Axes(xlCategory).MaximumScale.Value
End Sub
The error message says it is missing an object.
What am I leaving out?
(The ultimate goal is to have the axes mim/max values for chart1 on Sheet 1 to be transferred to Chart 2 Sheet 2 when I click the Command button)