ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete Sheets (https://www.excelbanter.com/excel-programming/332513-delete-sheets.html)

Andibevan[_2_]

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



keepITcool

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


Dave Peterson[_5_]

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

Doug[_13_]

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






All times are GMT +1. The time now is 12:04 AM.

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