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!

Supressing Excel Messages when deleting sheets

Status
Not open for further replies.

jfeegler

Programmer
Joined
Oct 11, 2002
Messages
7
Location
US
Anyone know how to shut off the automatic message "Data may exist in the sheet(s) selected for deletion. To permanently delete the data, press delete" when I try to delete a worksheet using vba? I'm using the code:

Sheets("BT Account 2- Market Template").Delete

Is this message something I can turn off?

Thanks for your help!
 
Nevermind- found it.
Application.DisplayAlerts = false
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top