View Single Post
  #1   Report Post  
 
Posts: n/a
Default What is the VBA code to delete a sheet without warning message?

I have the following code to delete a tab:

Sheets("Sheet1").Select
ActiveWindow.SelectedSheets.Delete

When I run this, I get the standard "You may lose data" warning
message. Does a different syntax allow me to delete the sheet without
getting the warning message?

Thanks