ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I make excel not prompt before deleting worksheets? (https://www.excelbanter.com/excel-worksheet-functions/98976-how-do-i-make-excel-not-prompt-before-deleting-worksheets.html)

Lar Chen

How do I make excel not prompt before deleting worksheets?
 
I am trying to delete worksheets in an excel workbook without it prompting me
if i'm sure everytime i do this. Any ideas?

Nick Hodge

How do I make excel not prompt before deleting worksheets?
 
If you are talking about manually, there is no way around it and believe me,
one day you will be happy it does.

If this is part of a macro, use

Application.DisplayAlerts = False

before you delete the sheet and the =True after

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Lar Chen" <Lar
wrote in message
...
I am trying to delete worksheets in an excel workbook without it prompting
me
if i'm sure everytime i do this. Any ideas?




Gord Dibben

How do I make excel not prompt before deleting worksheets?
 
Lar Chen

Sub SheetDelete()
Application.DisplayAlerts = False
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True
End Sub

Only way to get the sheet back is to close without saving, so be careful.


Gord Dibben MS Excel MVP

On Wed, 12 Jul 2006 14:00:02 -0700, Lar Chen <Lar
wrote:

I am trying to delete worksheets in an excel workbook without it prompting me
if i'm sure everytime i do this. Any ideas?




All times are GMT +1. The time now is 01:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com