Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello!
When I want delete sheet in VBA and I don't want that warning message (are you sure etc...) appear, how I can do that? Thanks BR, Tommi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.DisplayAlerts = False 'at the beginning of module
Application.DisplayAlerts = True 'at end of module Amit "Tommi" wrote in message ... Hello! When I want delete sheet in VBA and I don't want that warning message (are you sure etc...) appear, how I can do that? Thanks BR, Tommi |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use:
application.displayalerts = false 'Delete Sheet application.displayalerts = true |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tommi
Sub SheetDelete() Application.DisplayAlerts = False ActiveWindow.SelectedSheets.Delete Application.DisplayAlerts = True End Sub Gord Dibben Excel MVP On Thu, 18 Dec 2003 16:56:34 +0200, "Tommi" wrote: Hello! When I want delete sheet in VBA and I don't want that warning message (are you sure etc...) appear, how I can do that? Thanks BR, Tommi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keep sheet from deleting contents | Excel Worksheet Functions | |||
Deleting a sheet creates a new one | Excel Discussion (Misc queries) | |||
Deleting every-other row in a spread sheet | Excel Discussion (Misc queries) | |||
Deleting Many Cells on a Sheet | Excel Programming | |||
Deleting a Sheet | Excel Programming |