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

Hello!

When I want delete sheet in VBA and I don't want that warning message (are
you sure etc...) appear, how I can do that?

Thanks

BR,
Tommi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Deleting Sheet

Application.DisplayAlerts = False 'at the beginning of module
Application.DisplayAlerts = True 'at end of module

Amit


"Tommi" wrote in message
...
Hello!

When I want delete sheet in VBA and I don't want that warning message (are
you sure etc...) appear, how I can do that?

Thanks

BR,
Tommi




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Deleting Sheet

Use:

application.displayalerts = false
'Delete Sheet
application.displayalerts = true
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Deleting Sheet

Tommi

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

Gord Dibben Excel MVP

On Thu, 18 Dec 2003 16:56:34 +0200, "Tommi" wrote:

Hello!

When I want delete sheet in VBA and I don't want that warning message (are
you sure etc...) appear, how I can do that?

Thanks

BR,
Tommi


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
Keep sheet from deleting contents Richard Excel Worksheet Functions 1 March 14th 08 03:24 AM
Deleting a sheet creates a new one laralea Excel Discussion (Misc queries) 6 June 13th 07 12:22 AM
Deleting every-other row in a spread sheet smintey Excel Discussion (Misc queries) 5 December 8th 04 05:08 PM
Deleting Many Cells on a Sheet Jim[_34_] Excel Programming 2 October 30th 03 04:38 PM
Deleting a Sheet Abdul Salam Excel Programming 1 July 29th 03 12:43 AM


All times are GMT +1. The time now is 07:05 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"