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: 51
Default Controlling sheet number during sheet add

I have a macro that continually deletes and adds a worksheet. Every
time it does this, the default sheet number that Excel assigns
increments (Sheet1, Sheet2 ..etc). I only have 3 sheets in my
workbook, but since I am constantly recreating the 3rd sheet, the
internal Excel-assigned SheetXXX name keeps incrementing. This is NOT
the name of the sheet (which I can change), but the SheetXXX name that
Excel assigns to a new sheet.

1) Is there a way to tell Excel what default sheet number to use.

OR

2) Is there a way to reset the new sheet counter in VBA?

The default new sheet counter continually goes up even if I close and
open Excel. Currently, I'm at Sheet145... but I'm guessing that
something will eventually max out... maybe at Sheet255?

Any ideas?

Thanks.

John

 
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
Macro to lookup a sheet, number, then display in origonal sheet abbsy3 New Users to Excel 3 November 9th 10 12:19 PM
Controlling tab order on a sheet to include AX combos Chip Pearson Excel Programming 1 January 5th 07 10:16 PM
Creating and Controlling a User data Entry Sheet Crispy Excel Discussion (Misc queries) 0 June 2nd 06 11:11 AM
Using the Indirect function with a sheet number instead of a sheet name JDB Excel Worksheet Functions 5 December 31st 05 03:03 PM
Macro, select Sheet "Number", NOT Sheet Name DAA Excel Worksheet Functions 4 November 30th 04 05:29 PM


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