Hi all.
I have a document with several views. In every view there is some data to be plotted. Two of those views are working correct. But plotting in the other two views result in an axes error:
hartCoord = "B5:" + ChartDate + "5,B7:" + ChartDate + "15"
ActiveSheet.ChartObjects("Chart 4").Activate
ActiveChart.Axes(xlValue).Select //error in this line
ActiveChart.ChartArea.Select
ActiveChart.SetSourceData Source:=Sheets("Data").Range(ChartCoord), PlotBy:=xlRows
This line "ActiveChart.Axes(xlValue).Select", what does it exactly do? I'm trying to find out what a possible error could be. What are typical errors sources for that line of code?
thanks
I have a document with several views. In every view there is some data to be plotted. Two of those views are working correct. But plotting in the other two views result in an axes error:
hartCoord = "B5:" + ChartDate + "5,B7:" + ChartDate + "15"
ActiveSheet.ChartObjects("Chart 4").Activate
ActiveChart.Axes(xlValue).Select //error in this line
ActiveChart.ChartArea.Select
ActiveChart.SetSourceData Source:=Sheets("Data").Range(ChartCoord), PlotBy:=xlRows
This line "ActiveChart.Axes(xlValue).Select", what does it exactly do? I'm trying to find out what a possible error could be. What are typical errors sources for that line of code?
thanks