"Add Series" Loop for Graphs
Posted by John on December 04, 2001 6:42 AM
General Question:
How do I make a loop for Adding Series Collections to a graph?
Example Loop I am using (doesn't work):
*******************************************************
For k = 0 To ((i / 2) - 1)
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(k + 1).Name = Mylist(k)
ActiveChart.SeriesCollection(k + 1).XValues = "=Sheet1R46C1:R796C1"
ActiveChart.SeriesCollection(k + 1).Values = "=Sheet1!R46C3:R796C3"
Next k
*****************************************************
Exact Question:
How do I add one (1) to the column number in the syntax "R46C3:R796C3" so that it reads "R46C4:R796C4?