Excel Charting Macro That deletes Sheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
Application.DisplayAlerts = False

your deletion code

Application.DisplayAlerts = True



Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top