View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike Middleton[_2_] Mike Middleton[_2_] is offline
external usenet poster
 
Posts: 110
Default Graph not plotting correctly if source not selected

Frank -

Excel chart guru Jon Peltier has VBA code examples at

http://peltiertech.com/Excel/ChartsH...kChartVBA.html

- Mike
http://www.MikeMiddleton.com



"Frank" wrote in message
...
Here my code:

Set Cht_level = Charts.Add
With Cht_level
.ChartType = xlLine
.SetSourceData Source:=cht_src
End With

if fails.

But if I

add cht_src.Select

before the code, it works brilliantly?

Why?