View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.charting
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Deleting "hidden" charts on a worksheet

Try this. Be advised it will delete all shapes on the active sheet. Is this
what you want to do?
Sub deleteshapes()
For Each s In ActiveSheet.Shapes
s.Delete
Next s
End Sub


--
Don Guillett
SalesAid Software

wrote in message
oups.com...
Hi everyone,

I've been playing around w/ a worksheet that contains data and charts,
inserting and removing multiple rows at a time. Unfortunately, I did
not change the properties of the charts and they were all set to "Move
and Size w/ Cells". When I deleted a series of rows, these charts
disappeared and left a line across the spreadsheet where they used to
be. I've tried everything to get rid of them (because they are now
calculating incorrectly and giving me error messages), including
deleting the rows where they appear, trying to select them on the
sheet, but nothing works. The best scenario would be to select and
delete them but obviously this isn't possible. Any thoughts?

Thanks,
Louis