How do I turn off the Delete Confirm in Excel/VBA

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

Guest

I have a workbook which contains only VBA which acts on another workbook and
produces up to 20 working worksheets which I cancel with Sheet(X).Delete, how
do I prevent up to 20 msgboxes asking me to confirm that I want to delete
 
Hi
application.displayalerts=false
'delete code
application.displayalerts=true

--
Regards
Frank Kabel
Frankfurt, Germany

Terry Lawson said:
I have a workbook which contains only VBA which acts on another workbook and
produces up to 20 working worksheets which I cancel with Sheet(X).Delete, how
do I prevent up to 20 msgboxes asking me to confirm that I want to
delete
 

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