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 Worksheet.


Hi,
what is the macro to delete the Worksheet? Example. I
have three worksheets. Sheet1, Sheet2 and Sheet3. I would
like to delete the sheet1.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Delete Worksheet.

Hume, Sheets("Sheet1").Delete

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Hume" wrote in message
...

Hi,
what is the macro to delete the Worksheet? Example. I
have three worksheets. Sheet1, Sheet2 and Sheet3. I would
like to delete the sheet1.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Delete Worksheet.

Hume,

Sub DeleteSheet()
Application.DisplayAlerts = False
Worksheets("Sheet1").Delete
Application.DisplayAlerts = True
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Hume" wrote in message
...

Hi,
what is the macro to delete the Worksheet? Example. I
have three worksheets. Sheet1, Sheet2 and Sheet3. I would
like to delete the sheet1.



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
How do you delete a worksheet? Don J Excel Discussion (Misc queries) 5 January 3rd 06 07:11 PM
How do I delete one worksheet from a different one? Mandy Excel Discussion (Misc queries) 1 June 9th 05 06:08 PM
to delete a worksheet ªü¤T[_2_] Excel Programming 2 February 27th 05 11:02 AM


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