A Chart can be embedded, in which case it is a ChartObject or a sheet in which case it is a Chart.
To delete all charts in a workbook...
Code:
dim cht as cahrt, ws as worksheet, co as chartobject
for each cht in activeworkbook.charts
cht.delete
next
for each ws in worksheets
for each co in ws.chartobjects
co.delete
next
next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.