Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi.
I currently am deleting sheets in a macro with the command: ActiveWindow.SelectedSheets.Delete Each time it is executed, it prompts me with a message that says "Data may exist ..." How do I tell my macro to skip this? Thanks, Mike. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Possibly
application.DisplayAlerts = False ActiveWindow.Selectedsheets.Delete Application.DisplayAlerts = True -- Regards, Tom Ogilvy "Mike D." wrote in message ... Hi. I currently am deleting sheets in a macro with the command: ActiveWindow.SelectedSheets.Delete Each time it is executed, it prompts me with a message that says "Data may exist ..." How do I tell my macro to skip this? Thanks, Mike. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try application.displayalerts=false ActiveWindow.SelectedSheets.Delete application.displayalerts=true -- Regards Frank Kabel Frankfurt, Germany Mike D. wrote: Hi. I currently am deleting sheets in a macro with the command: ActiveWindow.SelectedSheets.Delete Each time it is executed, it prompts me with a message that says "Data may exist ..." How do I tell my macro to skip this? Thanks, Mike. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mike
you could try: Application.DisplayAlerts = False ' your code Application.DisplayAlerts = True Regards Trevor "Mike D." wrote in message ... Hi. I currently am deleting sheets in a macro with the command: ActiveWindow.SelectedSheets.Delete Each time it is executed, it prompts me with a message that says "Data may exist ..." How do I tell my macro to skip this? Thanks, Mike. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, Tom, Trevor, and Frank! This worked.
-----Original Message----- Hi. I currently am deleting sheets in a macro with the command: ActiveWindow.SelectedSheets.Delete Each time it is executed, it prompts me with a message that says "Data may exist ..." How do I tell my macro to skip this? Thanks, Mike. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Graphics won't delete from spreadsheet | Excel Discussion (Misc queries) | |||
delete all the spreadsheet | Excel Discussion (Misc queries) | |||
How do I delete a row from a spreadsheet if criteria is not met i. | Excel Worksheet Functions | |||
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? | Excel Discussion (Misc queries) | |||
Macro to Delete a Spreadsheet | Excel Programming |