avoid message that asks for confirm delete sheet

C

Craig

What statement can avoid the confirmation of deleting a worksheet during a
macro run?

thank you
 
M

Mike H

Craig,

Application.displayalerts=false

'your delete code

Application.displayalerts=true

Mike
 

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

Top