In Excel 2003 this code worked for clearing all diagrams in worksheet:
Worksheets(ws_data).ChartObjects.Delete
Now in Excel 2007 it only works, if there is at least one diagram. When starting it does not work (first time). Returns runtime error 1004.
Bookmarks