ChartObjects Insanity - Excel 2007
Very, very kludgey,
It could be done with slightly less of a kludge if you use an existing
worksheet rather than adding a temporary one. If you do, start with
cnt = ws.chartobjects.count
' loop and move the chartobject
ws.chartobjects(cnt - 1).delete
Should be fine except the object counter increments each time, and never
decrements when an object is deleted (unless the file is saved/closed with
no objects on the sheet). The large object counter is not bad, only
cosmetic.
As for 2007 charts in general, hmm.....
Regards,
Peter T
"Spiggy Topes" wrote in message
...
Thanks for that, it's greatly appreciated. Very, very kludgey,
though.. Excel 2007 seems to be a really poor substitute for 2003. The
help functionality is much less usable, functionality has just
disappeared (FileSearch, for instance), I have errors that go away as
soon as I enter debug, and crazy things with chart width that seem to
go away if I turn ScreenUpdating off and then immediately on again.
Nice work there, Microsoft.
|