Hi,
I am generating a chart through a macro. I am using 4 non adjacent range and the end point of the range is represented by a variable as the end point is not fixed. I am using following code.
Code
Row = 5
StartPoint1 = "C19"
EndPoint1 = "C" & 19 + Row
StartPoint2 = "E19"
EndPoint2 = "E" & 19 + Row
StartPoint3 = "G19"
EndPoint3 = "G" & 19 + Row
StartPoint4 = "I19"
EndPoint4 = "I" & 19 + Row
ActiveChart.SetSourceData Source:=Sheets("Summary").Range( _
"StartPoint1:EndPoint1,StartPoint2:EndPoint2,StartPoint3:EndPoint3,StartPoint4:EndPoint4"), PlotBy:=xlColumns
Display More
Can any one please help to rectify the error. Your help is highly appreciated.
Regards
Angshuman