Delete all chart sheets and tabs in Excel using this macro. This will only delete the charts and graphs that are in their own tab or worksheet. No embedded charts will be deleted using this macro. Also, when you run this macro, a warning message will pop up to verify that you want to delete the worksheets or tabs.
To use this macro just install it and run it. It works on the active workbook in Excel. If you don't have a chart sheet or tab in Excel, this macro will throw an error. This is easy to fix, but in the interest of providing the simplest version of this macro so that you can more easily integrate it into your own vba code, those features were not included.
Sub delete_all_chart_sheets_in_workbook()
'This example deletes every chart sheet in the active workbook.
ActiveWorkbook.Charts.Delete
End Sub