Hey guyz,
I almost go crazy over here, I'm trying to automate something which creates a historysheet and add new traces to this. also automatically, the traces should be added to the chart. Everything works, but this chartthing drives me up the wall. This source code down there is one of my tries to get it fixed, but I get a "application error" when assigning the xvalues.
Does somebody know soemthing about it?
Thanx a lot guyz I appreciate your help
Worksheets(glbstrsheetname).ChartObjects(1).Activate
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).XValues = Worksheets(glbstrsheetname).Range(Cells(3, iNewColumn), Cells(irow, iNewColumn))
ActiveChart.SeriesCollection(2).Values = Worksheets(glbstrsheetname).Range(Cells(3, iNewColumn + 1), Cells(irow, iNewColumn + 1))
I almost go crazy over here, I'm trying to automate something which creates a historysheet and add new traces to this. also automatically, the traces should be added to the chart. Everything works, but this chartthing drives me up the wall. This source code down there is one of my tries to get it fixed, but I get a "application error" when assigning the xvalues.
Does somebody know soemthing about it?
Thanx a lot guyz I appreciate your help
Worksheets(glbstrsheetname).ChartObjects(1).Activate
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).XValues = Worksheets(glbstrsheetname).Range(Cells(3, iNewColumn), Cells(irow, iNewColumn))
ActiveChart.SeriesCollection(2).Values = Worksheets(glbstrsheetname).Range(Cells(3, iNewColumn + 1), Cells(irow, iNewColumn + 1))