Mary Kathryn,
It worked for me.
Is your active sheet a worksheet with a chart on it? (not a chart sheet)
Is the chart selected?
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
"Mary Kathryn"
wrote in message...
I am stumped! How do I make the following generic, so that it chooses
the active sheet and not "Sheet1"?
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range( _
"E18:CA18,E29:CA29,E40:CA40,E55:CA55"), PlotBy:=xlRows
I tried :
ActiveChart.SetSourceData Source:=Activesheet.Range( _
"E18:CA18,E29:CA29,E40:CA40,E55:CA55"), PlotBy:=xlRows
but get "object required".
I sure would appreciate any help! Thanks!
Mary Kathryn