deleting worksheet

  • Thread starter Thread starter Fun Kid
  • Start date Start date
F

Fun Kid

What line of code should I include while deleting a worksheet through
VBA so that the security feature (The selected sheet(s) will be
permanently deleted.) is disabled. Right now I have to click "OK" for
the code to continue. Any suggestions?
 
Hi
use something like
...
application.displayalerts=false
'delete the sheet
application.displayalerts=True
 

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