Deleting Sheet without message box

  • Thread starter Thread starter Mr. T
  • Start date Start date
M

Mr. T

Hello,

I want to delete a worksheet, but upon doing so a message box pops up
informing the user that the sheet will be deleted, giving OK and Cancel
options. How do I suppress this message box? I have screened the application
object for a switch but have not figured out what to do.

Thank you so much for your help!!

Oliver
 
application.displayalerts = false
worksheets("sheet99").delete
application.displayalerts = true
 
Application.DisplayAlerts = False
Sheets("Whatever").Delete
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