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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set the source data range for chart in code?

Status
Not open for further replies.

xq

Programmer
Jun 26, 2002
106
NL
i have one blank column B, and i don't want it appears in chart, how do i do it?

that's the code i've written, but it didnt' give me what i want.
Charts(1).SetSourceData Source:=Sheets(1).Range("a1:d10), _
PlotBy:=xlColumns

thanks a lot !
 
try this (untested)
Charts(1).SetSourceData Source:=Sheets(1).Range("a1:a10,c1:c10"), _
PlotBy:=xlColumns
Rgds
Geoff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top