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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Sheet without display alert

Status
Not open for further replies.

Adnane

Technical User
Apr 22, 2003
88
EU
Hi,

i'm using a macro to delete all sheets (except two named ones) before the rest of it gets executed. this is to avoid having a lot of sheets after a couple of executions.

what i'm asking now is how to do it without having to confirm the deletion of each sheet manually.

i tried the Application.DisplayAlerts = False but it doesn't work and instead a get an error.

Regards,

Adnane

Micorosft North Africa
 
Post your code and what error do you get? Application.DisplayAlerts=False should work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top