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: 6
Default Selecting a group of worksheets to delete

I wish to get some code that will select and delete a group of sheets - those
that are between two other sheets "Frontsheet" and "Endsheet".

I have tried to record this but what I get is simply
Application.Goto Reference:="Frontsheet!R[1]C[1]"
ActiveSheet.Next.Select
Sheets(Array( "Sheetname1","Sheetname2"... "SheetnameZ").Select
etc

where "Sheetname1" is the sheet following "Frontsheet" and "SheetnameZ" is
that before "Endsheet"

The sheet names of the sheets between "Frontsheet" and "Endsheet" will not
always be the same and the number of sheet will also vary.

I am quite sure there is code out there to do this, but I'm slightly
stumped. can anyone give some guidance?

TIA
Ron
 
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
Selecting a group of contiguous rows jfg Excel Discussion (Misc queries) 1 August 7th 07 06:34 AM
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee jaking Excel Worksheet Functions 2 August 30th 05 02:09 PM
Group Boxes - selecting more than one item Katie-Baughman Excel Discussion (Misc queries) 3 May 13th 05 06:15 PM
Selecting a group of sheet tabs Conan Kelly Excel Programming 1 November 15th 04 03:25 AM
optimization-selecting a group with constraints chandran19[_2_] Excel Programming 2 September 19th 04 05:18 PM


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