Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I have a macro that creates a new worksheet, deletes 2 tabs, then closes the worksheet. When I run the macro there are 2 prompts, 1-do you want to delete the sheets 2-do you want to save the worksheet. Is there a way to turn this off so the macro runs more smoothly? Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Jeff,
Insert Application.DisplayAlerts = False before and Application.DisplayAlerts = True after line deleting sheets (tabs as you call them), and ActiveWorkbook.Save before line closing the workbook (not worksheet). Regards, Stefi €˛Jeff€¯ ezt Ć*rta: Hi, I have a macro that creates a new worksheet, deletes 2 tabs, then closes the worksheet. When I run the macro there are 2 prompts, 1-do you want to delete the sheets 2-do you want to save the worksheet. Is there a way to turn this off so the macro runs more smoothly? Thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Jeff wrote: Hi, I have a macro that creates a new worksheet, deletes 2 tabs, then closes the worksheet. When I run the macro there are 2 prompts, 1-do you want to delete the sheets 2-do you want to save the worksheet. Is there a way to turn this off so the macro runs more smoothly? Thanks! To close a workbook without being prompted to save Windows("NAME.xls").Close saveChanges:=False Funnily enough I was just about to ask how to close tabs without the save prompt! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Highlight Range - wrong macro, please edit. | Excel Worksheet Functions | |||
How to CANCEL file SAVE PROMPT when MACRO is running? | Excel Discussion (Misc queries) | |||
How do I insert a prompt into an Excel macro? | Excel Discussion (Misc queries) | |||
Prompt for file name in a macro | Excel Discussion (Misc queries) |