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

but want to ignore the warning message, please advise what should I
add at the end of the following command? thanks

e.g.
Sheets("ABC").Select
Sheets("ABC").Delete

Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default to delete a worksheet

Hi Paul

This will work, there is no need to select the sheet first.

Sub tt()
Application.DisplayAlerts = False
Sheets("ABC").Delete
Application.DisplayAlerts = True
End Sub

Regards
Andrew Bourke


ªü¤T wrote:
but want to ignore the warning message, please advise what should I
add at the end of the following command? thanks

e.g.
Sheets("ABC").Select
Sheets("ABC").Delete

Paul


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default to delete a worksheet

Dear Andrew

Lots of thanks!

Paul

"Ajtb" ¼¶¼g©ó¶l¥ó·s»D
...
Hi Paul

This will work, there is no need to select the sheet first.

Sub tt()
Application.DisplayAlerts = False
Sheets("ABC").Delete
Application.DisplayAlerts = True
End Sub

Regards
Andrew Bourke


ªü¤T wrote:
but want to ignore the warning message, please advise what should

I
add at the end of the following command? thanks

e.g.
Sheets("ABC").Select
Sheets("ABC").Delete

Paul



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 value on worksheet 2 that match values on worksheet 1 np Excel Discussion (Misc queries) 0 December 10th 09 06:02 PM
How to delete a duplicate Excel worksheet within that worksheet? jozawun Excel Discussion (Misc queries) 6 September 19th 06 02:20 PM
Delete a worksheet DWPlaisance Excel Discussion (Misc queries) 3 March 7th 06 08:03 PM
How do you delete a worksheet? Don J Excel Discussion (Misc queries) 5 January 3rd 06 07:11 PM
Delete a Worksheet Andym Excel Programming 1 February 7th 05 04:49 PM


All times are GMT +1. The time now is 08:21 PM.

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"