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

Excel chart to wrong worksheet?

Status
Not open for further replies.

MePenguin

Technical User
Oct 31, 2003
107
SE
Could anyone tell me under which circumstances the following will not work?

Code:
ObjExChart.Location xlLocationAsObject, "Graphs"

I have the line in a module that draws a couple of charts, moving the chart to the "Graphs" worksheet when drawn.
If I just have 2 worksheets, then it works fine - with more then it moves the chart to the last worksheet created, and the next bit of code fails because the chart isn't where it should be...

thanks

Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top