Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We have a macro in which we are deleting a worksheet. When
the code gets to that point, the user gets a warning message about permanently deleting the worksheet. How do we turn off that warning in the macro? Do we need to turn the warnings back on before we close the macro? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Ken" wrote in message ... We have a macro in which we are deleting a worksheet. When the code gets to that point, the user gets a warning message about permanently deleting the worksheet. How do we turn off that warning in the macro? Application.DisplayAlerts = False Do we need to turn the warnings back on before we close the macro? Application.DisplayAlerts = True Keith |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ken wrote:
We have a macro in which we are deleting a worksheet. When the code gets to that point, the user gets a warning message about permanently deleting the worksheet. How do we turn off that warning in the macro? Do we need to turn the warnings back on before we close the macro? Not sure if this is waht you need but try with Application.DisplayAlerts = False and set it back to true before closing the macro, otherwise none of the excel alerts will display. Regards, -- Beto Reply: Erase between the dot (inclusive) and the @. Responder: Borra la frase obvia y el punto previo. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to turn off the popup warning when clicking on a hyperlink | Excel Worksheet Functions | |||
How do you turn off sort warning in Excel 2003? | Excel Discussion (Misc queries) | |||
How do I turn off the clipboard warning when a file is closed? | Excel Discussion (Misc queries) | |||
How to turn off warning when hyperlinking to other program? | Excel Discussion (Misc queries) | |||
Redundant Macro warning or hidden macro? | Excel Programming |