Closed Thread
Results 1 to 2 of 2

Renaming the sheet codename

  1. #1
    Registered User
    Join Date
    06-10-2008
    Posts
    14

    Renaming the sheet codename

    Hi all,

    I'm trying to speed up a macro which deletes a pivottable on a sheet using
    Please Login or Register  to view this content.
    This takes an age and when there are a lot of sheets it would be a good to place to focus on to speed up the overall macro.

    What I thought about doing was deleting the sheet - I think this is a lot quicker but I have the problem that when I add a sheet back in I can change the name but not the code name.

    Does anyone have any ideas of how to do this?

    Code so far:
    [CODE]
    ActiveSheet.Delete
    Sheets.Add
    ActiveSheet.Name = "BI Projects"
    ActiveSheet.Move Before:=Sheets(10)
    /CODE]

    I just need the "Sheet17" for example to be "Sheet2"

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Renaming the sheet codename

    Duplicate post, thread closed.

    Please take a few minutes to read the Forum Rules, and then continue in your other thread.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

Closed Thread

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