Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I want to be able to delete a sheet - how can I stop the system confirmation message appearing. In access I use docmd.setwarnings = false - is there something similar for Excel Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
Application.DisplayAlerts = False ' delete the sheet Application.DisplayAlerts = True -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Newbie" wrote in message ... Hi I want to be able to delete a sheet - how can I stop the system confirmation message appearing. In access I use docmd.setwarnings = false - is there something similar for Excel Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks - works a treat!
"Chip Pearson" wrote in message ... Try something like Application.DisplayAlerts = False ' delete the sheet Application.DisplayAlerts = True -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Newbie" wrote in message ... Hi I want to be able to delete a sheet - how can I stop the system confirmation message appearing. In access I use docmd.setwarnings = false - is there something similar for Excel Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't know if it would be of interest since you are already
working with a macro of your own. I have a macro that I invoke from the toolbar to delete the active sheet under certain conditions. If there is code associated with the sheet -- don't delete and exit the macro. If the sheetname begins with "Sheet" then delete without warning. Otherwise, let the standard dialog come up with warning. Keeps me out of trouble when I go through all the worksheets quickly. I use toolbar buttons to do that but you can go through the worksheets with Ctrl+PageUp or Ctrl+PageDown. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Chip Pearson" wrote in message Application.DisplayAlerts = False ' delete the sheet Application.DisplayAlerts = True "Newbie" wrote in ... I want to be able to delete a sheet - how can I stop the system confirmation message [from] appearing. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete ROW on Sheet#1 corupts data on Sheet#2 | Excel Worksheet Functions | |||
Delete a sheet | Excel Worksheet Functions | |||
Delete values in sheet 2 that arre found in sheet 1 | Excel Discussion (Misc queries) | |||
Delete rows from one sheet containing deatils on the second sheet | New Users to Excel | |||
How do I un-delete a sheet? | Excel Discussion (Misc queries) |