gautammalkani
Technical User
Hi
I would like to automate the range on source data on a chart. I would like to automate all the data and new data that keep getting added onto my worksheet so that the user does not need to edit the chart.
Here is what i have so far :
Sub Macro3()
'
' Macro3 Macro
' Macro recorded 12/31/03 by MALKAG
'
'
Dim i As Integer
Dim k As Integer
i = 2
Do While Not IsEmpty(Range("C" & i).Value)
i = i + 1
k = i - 1
Loop
ActiveSheet.ChartObjects("Chart 45".Activate
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection(1).Values= "='0603_WcUtil'!R2C5:RkC5"
'Note the last line is obviously wrong but how do i get the source data to be determined by a counter?
End Sub
Thanks for your help, time and suggestions.
Cheers
Gautam
I would like to automate the range on source data on a chart. I would like to automate all the data and new data that keep getting added onto my worksheet so that the user does not need to edit the chart.
Here is what i have so far :
Sub Macro3()
'
' Macro3 Macro
' Macro recorded 12/31/03 by MALKAG
'
'
Dim i As Integer
Dim k As Integer
i = 2
Do While Not IsEmpty(Range("C" & i).Value)
i = i + 1
k = i - 1
Loop
ActiveSheet.ChartObjects("Chart 45".Activate
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection(1).Values= "='0603_WcUtil'!R2C5:RkC5"
'Note the last line is obviously wrong but how do i get the source data to be determined by a counter?
End Sub
Thanks for your help, time and suggestions.
Cheers
Gautam