Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default 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?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default 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?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make editable PDF forms using Excel? Haplo New Users to Excel 5 July 16th 06 12:09 AM
Sorting Excel columns in several worksheets at once. Dale60 Excel Discussion (Misc queries) 3 June 27th 06 11:34 PM
Excel 2007 MS Query prompt yields Syntax error Bruce Excel Discussion (Misc queries) 0 May 26th 06 11:06 AM
No prompt on exit in Excel 2003 nsm Setting up and Configuration of Excel 0 May 3rd 06 10:56 PM
Excel 2003 does not prompt to save changes when closing? Johnewally Excel Discussion (Misc queries) 1 March 17th 05 06:41 PM


All times are GMT +1. The time now is 09:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"