Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error boxes

Status
Not open for further replies.

andrew299

Technical User
Nov 18, 2002
140
GB
Hello
I would like to know how to turn off error messages. I have a macro that deletes sheets in a workbook, but everytime I run it for every sheet I get a message - This sheets will be permanently deleted -yes or no? or something

How do I stop this appearing because it is annoying when I have several sheets to delete.

Thanks
Andrew299
 
Put
Application.displayalerts = false
before you delete the sheets
and then
Application.displayalerts = true
afterwards

Make sure you turn them back on or they will be off for the rest of the session Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top