View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Deleting sheets without confirmation

Use Application.DisplayAlerts = False to suppress the
confirmation message. E.g.,

Application.DisplayAlerts = False
Sheets("Setup").Delete
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"PCLIVE" wrote in message
...
I'm using the following code:

Sheets("Setup").delete


What do I need to add to this to prevent the confirmation
message from appearing? I would like the sheet to be deleted
without any interaction.

Thanks,
Paul