Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro : confirm Delete
Dear,
I am useing this macro : Sheets("XXX").Select ActiveWindow.SelectedSheets.Delete Then a messagebox appears to confirm to delete the data. How can I klick "Delete" automatically (or avoid this msgbox)? Thanks ! Tom |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro : confirm Delete
Hi Tom,
Application.DisplayAlerts = False Sheets("XXX").Select ActiveWindow.SelectedSheets.Delete Application.DisplaAlerts = True as you are only deleting the one sheet it can also be simplified to Application.DisplayAlerts = False ActiveWorkbook.Sheets("XXX").Delete Application.DisplaAlerts = True -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Tom" wrote in message ... Dear, I am useing this macro : Sheets("XXX").Select ActiveWindow.SelectedSheets.Delete Then a messagebox appears to confirm to delete the data. How can I klick "Delete" automatically (or avoid this msgbox)? Thanks ! Tom |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro : confirm Delete
Thank you !!
-----Original Message----- Hi Tom, Application.DisplayAlerts = False Sheets("XXX").Select ActiveWindow.SelectedSheets.Delete Application.DisplaAlerts = True as you are only deleting the one sheet it can also be simplified to Application.DisplayAlerts = False ActiveWorkbook.Sheets("XXX").Delete Application.DisplaAlerts = True -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Tom" wrote in message ... Dear, I am useing this macro : Sheets("XXX").Select ActiveWindow.SelectedSheets.Delete Then a messagebox appears to confirm to delete the data. How can I klick "Delete" automatically (or avoid this msgbox)? Thanks ! Tom . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
getting rid of the "confirm delete" dialogue box when deleting a s | Excel Discussion (Misc queries) | |||
Confirm a choice before Macro | Excel Discussion (Misc queries) | |||
How to confirm the open dialogue box by using macro coding? | Excel Worksheet Functions | |||
Confirm Delete Message Disable | New Users to Excel | |||
How do i delete a macro in Excel 2003 when delete isn't highlight | Excel Discussion (Misc queries) |