S
Scott G
I am running a simple macro where I need to delete a worksheet named
"Pivot", using the following code in VBA:
Sheets("Pivot").Delete
However, when I run this, I get a dialog box within Excel that reads:
"Data may exist in the sheet(s) selected for deletion. To permanently
delete the data, press delete"
The dialog box has two buttons "Delete" (which is active) and "Cancel".
Is there a way that I can automate the pressing of the delete button so
that the end user doesn't have to respond to the dialog box?
Thanks in advance.
"Pivot", using the following code in VBA:
Sheets("Pivot").Delete
However, when I run this, I get a dialog box within Excel that reads:
"Data may exist in the sheet(s) selected for deletion. To permanently
delete the data, press delete"
The dialog box has two buttons "Delete" (which is active) and "Cancel".
Is there a way that I can automate the pressing of the delete button so
that the end user doesn't have to respond to the dialog box?
Thanks in advance.