Deleting worksheets

  • Thread starter Thread starter Oscar
  • Start date Start date
O

Oscar

I have a for each loop which moves through each worksheet
and deletes those that fail a test.

However, each time it deletes I get a message saying that
the worksheet is to be deleted and an OK and a Cancel
button.

What do i have to add to my code to not get this message?
 
Hi

application.displayalerts=false
'deletion code
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