+ Reply to Thread
Results 1 to 6 of 6

Sheets Tab

  1. #1
    Registered User
    Join Date
    03-23-2007
    Posts
    91

    Sheets Tab

    Hi

    How can I write a macro to change the name of a sheet?
    Please Login or Register  to view this content.
    This selects Sheet1 and changes it to X2112

    But How can I access it if I don't know the same of the tab.
    Life for example if the name was Sheet2, it won't work.
    Is there away to reference this?

    thanks

  2. #2
    Registered User
    Join Date
    11-16-2006
    Posts
    80
    Hi,

    If you know the sequence number of the sheet, you can refer to it as the number whatever the name.

    Please Login or Register  to view this content.
    The sheet number will remain the same no matter what the name changes to.

    Hope this helps
    mccreaso

  3. #3
    Registered User
    Join Date
    03-23-2007
    Posts
    91
    I actually don't know it

    The sheet could be named ANC or ABC or 435FD

    Is there a way to reference it like you would reference cell A1 or Cells(1,1)

    Thanks

  4. #4
    Registered User
    Join Date
    11-16-2006
    Posts
    80
    that is how you reference it

    Please Login or Register  to view this content.
    Count the tabs from the left to find the sequence number,

    e.g 3 tabs, "ANC", "ABC", "435FD" = 1,2,3 left to right

    Please Login or Register  to view this content.
    Just an example, this would work if you had n number of tabs

    Hope this helps
    mccreaso

  5. #5
    Registered User
    Join Date
    11-16-2006
    Posts
    80
    Correction
    Quote Originally Posted by mccreaso
    that is how you reference it

    Please Login or Register  to view this content.
    mccreaso

  6. #6
    Registered User
    Join Date
    03-23-2007
    Posts
    91
    thanks that worked

+ Reply to 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