mgp
Mechanical
- May 30, 2001
- 224
I'm trying to write a code to copy a worksheet, do something and then delete it. Problem is I get this prompt before the sheet is deleted:
"Data may exist in the sheet(s) selected for deletion.To permanently delete the data, press delete."
How do I get my code to avoid that prompt or automatically accept it?
Sub Macro1()
Sheets("Template").Copy Before:=Sheets(1)
xxx
xxx
Sheets("Template (2)").Delete
End Sub
regards
Mogens
"Data may exist in the sheet(s) selected for deletion.To permanently delete the data, press delete."
How do I get my code to avoid that prompt or automatically accept it?
Sub Macro1()
Sheets("Template").Copy Before:=Sheets(1)
xxx
xxx
Sheets("Template (2)").Delete
End Sub
regards
Mogens