Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Macro to Delete a tab in a file
I would like to use a macro to delete a tab in a workbook. When I execute
the macro, I get the message asking if it is ok to delete the sheet. Is there a way to have the macro answer the question "yes". Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Macro to Delete a tab in a file
Hi
add the line application.displayalerts=false before the delete statement and afterwards add: application.displayalerts=true -- Regards Frank Kabel Frankfurt, Germany Dave wrote: I would like to use a macro to delete a tab in a workbook. When I execute the macro, I get the message asking if it is ok to delete the sheet. Is there a way to have the macro answer the question "yes". Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Macro to Delete a tab in a file
Application.DisplayAlerts = False
''your code to delete worksheet here Ray at work "Dave" wrote in message ... I would like to use a macro to delete a tab in a workbook. When I execute the macro, I get the message asking if it is ok to delete the sheet. Is there a way to have the macro answer the question "yes". Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
How do I delete an xls file using a .xl macro in a different file? | Excel Discussion (Misc queries) | |||
code to delete module / macro in another file | Excel Discussion (Misc queries) | |||
Open & delete file using a macro | Excel Discussion (Misc queries) | |||
Can't find macro in an Excel file to delete it | Excel Discussion (Misc queries) |