M
maxfoo
I'm trying to use an example in John Walkenbach excell2000 pp w/vba book on
deleting charts: 'ActiveWorkbook.Charts.Delete'
I have about 100 sheets that have data in column A and B and a chart in each
sheet. I need to delete each chart. I keep getting runtime error 1004 with the
following code.
For i = 1 To (ThisWorkbook.Sheets.Count) '# of sheets in workbook
Sheets(i).Select
Application.DisplayAlerts = False
ActiveWorkbook.Charts.Delete
Application.DisplayAlerts = False
Next i
TIA,
Remove "HeadFromButt", before replying by email.
deleting charts: 'ActiveWorkbook.Charts.Delete'
I have about 100 sheets that have data in column A and B and a chart in each
sheet. I need to delete each chart. I keep getting runtime error 1004 with the
following code.
For i = 1 To (ThisWorkbook.Sheets.Count) '# of sheets in workbook
Sheets(i).Select
Application.DisplayAlerts = False
ActiveWorkbook.Charts.Delete
Application.DisplayAlerts = False
Next i
TIA,
Remove "HeadFromButt", before replying by email.