Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with SetSourceData.

Status
Not open for further replies.

e97fw

Electrical
Jun 20, 2002
1
Hi!

Trying to plot data from selective curves from the power-grid. Since the number of data constantly changes I'm having problems with:

ActiveChart.SetSourceData Source:=
Sheets("Blad2").Range("A1:B???"), PlotBy:= _ xlColumns

I would've loved do write it like this:

ActiveChart.SetSourceData Source:=
Sheets("Blad2").Range(Cells(1,1),Cells(2,x)), PlotBy:= _ xlColumns

But that doesn't work, someone knows how to get around it?

Thanks in advanced from Sweden.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor