View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Wendell A. Clark Wendell A. Clark is offline
external usenet poster
 
Posts: 22
Default Auto delete of a sheet

Awesome thanks---

--
Wendell A. Clark, BS
-------------------------------------

CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may
contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient,
please notify us by reply e-mail. You are hereby notified that you have
received this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its contents is prohibited.
If you have received this communication in error, please destroy all copies
of this communication and any attachments. Contact the sender if it
continues.


"Nate Oliver" wrote in message
oups.com...
Hello Wendell,

You're not the Leafs former power forward are you? Best wrist-shot
ever!

You'll want to toggle the Application's 'alerts' setting for this,
e.g.,

Sub foo()
Application.DisplayAlerts = False
On Error Resume Next ' In case it's not there
ThisWorkbook.Worksheets("Temp").Delete
On Error GoTo 0
Application.DisplayAlerts = True
End Sub

Regards,
Nate Oliver