How to get rid of pop-up mesg box?

  • Thread starter Thread starter none
  • Start date Start date
N

none

I've got a macro that deletes all sheets but one. I would like to
bypass the pop-up mesg box confirming the requested deletion.

Any help is appreciated.

Thanks,
Mike
 
From Help:
Example
This example closes the workbook Book1.xls and doesn't prompt the user to
save changes. Any changes to Book1.xls aren't saved.

Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True

HTH
 

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