Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jun 20, 2002
Messages
1
Location
SE
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

Back
Top