LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Deleting all worksheets in a workbook except two

I would like to write a macro that deletes all worksheets in a workbook
except for two, called "Buttons" & "Data". The problem is that the amount of
and names of the worksheets won't be static, so I can't simply write
"Worksheets ("Sheet1").Delete". I thank you in advance for your help.
 
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
deleting worksheets from workbook when option not available Rita318 Excel Worksheet Functions 3 January 4th 07 07:17 PM
Deleting Worksheets in VBA Knut Dahl Excel Programming 4 May 23rd 05 07:22 PM
Deleting worksheets Alan L. Wagoner Excel Programming 4 January 24th 05 03:19 PM
Deleting worksheets Oscar Excel Programming 1 July 23rd 04 04:36 AM
Deleting every sheet in workbook after Worksheets(4) Todd Huttenstine[_3_] Excel Programming 2 January 2nd 04 06:50 AM


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

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"