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 Disable Worksheet Delete Dialog

Greg,

Try something like

Application.DisplayAlerts = False
' your code here
Application.DisplayAlerts = True


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





"Greg" wrote in message
...
I have a VBA macro that needs to delete a worksheet but the
confirmation
dialog comes up when run. Is there a way to disable this
dialog.

Thanks,
Greg