Results 1 to 9 of 9

Reset New Worksheet Numbering in Macro

Threaded View

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Scotland
    Posts
    12

    Reset New Worksheet Numbering in Macro

    I have a large macro doing multiple things only problem is that i can only run it once then have to shut down and open again if i want to run it again. The reason for this is that part of the macro creates new worksheets, and when the new worksheet is created it is automatically numbered as Sheet 1, Sheet 2 etc for a few new worksheets.

    My problem is when i run it a second time the new work sheets will be created as the next number in the sequence.

    i.e. the first round creates 2 new worksheets nameed Sheet 1 and Sheet 2, my macro references Sheet 1 and Sheet 2. How ever when i run it agian, it deletes Sheet1 and Sheet 2 and creates Sheet 3 and Sheet 4. My macro does not reference Sheet 3 and Sheet 4. You see my problem.

    Everytime i shut excel down it resets the numbering, is there anyway to do this in my macro without shuting down excel?
    Last edited by Colin_S; 08-16-2010 at 05:22 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1