Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code in a macro:
For i = numVars + 1 To 15 Sheets("numVar" & i).Select ActiveSheet.Delete Next It automatically deletes some tabs in my workbook. Every time I run it I get a warning message asking if I really want to delete each tab. Is there any code I can place before I run this loop to supress these warning messages? Thanks. -- Regards, Dave |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
use this at the begning of your code
Application.DisplayAlerts = False David Billigmeier wrote: I have the following code in a macro: For i = numVars + 1 To 15 Sheets("numVar" & i).Select ActiveSheet.Delete Next It automatically deletes some tabs in my workbook. Every time I run it I get a warning message asking if I really want to delete each tab. Is there any code I can place before I run this loop to supress these warning messages? Thanks. -- Regards, Dave |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Application.DisplayAlerts = False "David Billigmeier" wrote: I have the following code in a macro: For i = numVars + 1 To 15 Sheets("numVar" & i).Select ActiveSheet.Delete Next It automatically deletes some tabs in my workbook. Every time I run it I get a warning message asking if I really want to delete each tab. Is there any code I can place before I run this loop to supress these warning messages? Thanks. -- Regards, Dave |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Supress error message | Excel Discussion (Misc queries) | |||
supress activex message on open workbook | Excel Programming | |||
Supress "delete sheets" warning | Excel Programming | |||
Supress "delete sheets" warning | Excel Programming | |||
supress Solver message | Excel Programming |