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

Hi All,

When I use the following formula:-

Thisworkbook.sheets("Sheet1").delete

It asks me whether I want to delete the sheet - Is there any way of
bypassing this?

Ta

Andi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Delete Sheets

application.displayalerts=false

resets autom when macro is done.




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Andibevan wrote :

Hi All,

When I use the following formula:-

Thisworkbook.sheets("Sheet1").delete

It asks me whether I want to delete the sheet - Is there any way of
bypassing this?

Ta

Andi

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Delete Sheets

application.displayalerts = false
Thisworkbook.sheets("Sheet1").delete
application.displayalerts = true

Andibevan wrote:

Hi All,

When I use the following formula:-

Thisworkbook.sheets("Sheet1").delete

It asks me whether I want to delete the sheet - Is there any way of
bypassing this?

Ta

Andi


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Delete Sheets

Hi

You want it to say


Application.DisplayAlerts=False
Thisworkbook.sheets("Sheet1").delete
Application.DisplayAlerts=True


Doug

Andibevan wrote in message ...
Hi All,

When I use the following formula:-

Thisworkbook.sheets("Sheet1").delete

It asks me whether I want to delete the sheet - Is there any way of
bypassing this?

Ta

Andi




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
Macro to delete sheets and saves remaining file does not properly delete module pherrero Excel Programming 1 June 22nd 05 01:12 AM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:53 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:53 PM
Macro to delete sheets and saves remaining file does not properly delete module pherrero Excel Programming 0 June 21st 05 04:38 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:20 PM


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