delete sheet

  • Thread starter Thread starter nIGEL bENNETT
  • Start date Start date
N

nIGEL bENNETT

How can I code it to delete a sheet without the warnings

Thanks
 
Nigel

Sub QuietDelete
With Application
.DisplayAlerts = False
Worksheets("Sheet1").Delete
.DisplayAlerts = True
End With
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 

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