Disable Worksheet Delete Dialog

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

Guest

I have a VBA macro that needs to delete a worksheet but the confirmation
dialog comes up when run. Is there a way to disable this dialog.

Thanks,
Greg
 
Greg,

Try something like

Application.DisplayAlerts = False
' your code here
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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