Excel Charting Macro That deletes Sheet

D

Dave_Tho1968

Sorry about first balnk post

I have and excel macro written that creates a number of different charts for
users using dynamic ranges and what type of data they want to chart. The
macro deletes the previous chart sheet for them prior to creating the new
one, however it always comes up and asks if you want to delete the chart
sheet or cancel, is there anyway that I can automate that last single step.
 
O

OssieMac

Hi Dave,
Turn off with:-
Application.DisplayAlerts = False

Turn back on:-
Application.DisplayAlerts = True

Ensure that you do turn it back on in the program after the deletion line.

Regards,

OssieMac
 
G

Gord Dibben

Application.DisplayAlerts = False

your deletion code

Application.DisplayAlerts = True



Gord Dibben MS Excel MVP
 
Top