Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the following......
Application.DisplayAlerts = False Sheets("Name").Delete Application.DisplayAlerts = True -- Cheers Nigel "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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
application.displayalerts=false
'do stuff application.displayalerts=true Tim -- Tim Williams Palo Alto, CA "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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
Deleting a worksheet but retaining values from the worksheet. | Excel Discussion (Misc queries) | |||
Deleting filtered out data from a worksheet | Excel Worksheet Functions | |||
deleting values in a worksheet without deleting the formulas | Excel Worksheet Functions | |||
how do I delete data from a worksheet without deleting the formul. | Excel Discussion (Misc queries) |