Deleting A Worksheet - There may be data ...
Enclose your code in:
Application.DisplayAlerts = False
' your code
Application.DisplayAlerts = True
--
steveB
Remove "AYN" from email to respond
"Chaz" wrote in message
...
In the course of a macro, i create a worksheet edit some data and then
transfer the data to another sheet. When i delete the worksheet using the
command
Sheets("Name").Delete
I am prompted that there may be data in the worksheet and asks for
confirmation that i want that sheet deleted. This occurs even if i delete
all the occupied cells in a sheet. How can i turn this prompt off?
Thanks
|