Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default delete sheet

how can i write this without answering yes or no


Sub deleteSheet()
'
Application.DialogBox = False
ActiveWindow.SelectedSheets.Delete
Application.DialogBox = True

End Sub

Would like Thank You
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default delete sheet

Sub deleteSheet()
'
Application.DisplayAlerts = False
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True

End Sub
--
Regards,
Tom Ogilvy

"Esau" wrote in message
...
how can i write this without answering yes or no


Sub deleteSheet()
'
Application.DialogBox = False
ActiveWindow.SelectedSheets.Delete
Application.DialogBox = True

End Sub

Would like Thank You



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
Delete ROW on Sheet#1 corupts data on Sheet#2 Duane Excel Worksheet Functions 4 February 11th 10 07:53 PM
Delete values in sheet 2 that arre found in sheet 1 np Excel Discussion (Misc queries) 1 December 10th 09 07:21 PM
Delete rows from one sheet containing deatils on the second sheet [email protected] New Users to Excel 4 September 6th 07 11:10 AM
How do I un-delete a sheet? mdorn Excel Discussion (Misc queries) 2 February 4th 05 01:47 AM
Delete a sheet Newbie Excel Programming 3 April 13th 04 07:38 PM


All times are GMT +1. The time now is 04:51 PM.

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

About Us

"It's about Microsoft Excel"