+ Reply to Thread
Results 1 to 8 of 8

Naming Tabs

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2007
    Posts
    44

    Naming Tabs

    Is it possible to have a cell copy a tab name or alternatively have the tab name derived from a cell within the tab? Rgds H

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Naming Tabs

    You really should decide which one you want.
    Because they are both possible, and they are both very different things.

    Do you want the Cell to show what the sheet's name is, or do you want to name the sheet based on what is in the cell ?

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Naming Tabs

    Hi again, what I need for this sheet is to be able for the cells to be able to pick up the tab name. I would also use the name in a cell on another tab too. I may have a need to do it the other way round later but I keep getting inputs from people as I design which changes the functionalities I dream up! Thanks again for your time today! Rgds H

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Naming Tabs

    This will get you the name of the sheet that the formula is entered on.

    =REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),"")


    Note, this will only work on a file that has been saved.

  5. #5
    Registered User
    Join Date
    04-23-2013
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Naming Tabs

    That works fine, What about the other way round, using A1 as the reference for the tab? H

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Naming Tabs

    That requires VBA

    Sub Test()
    ActiveSheet.Name = Range("A1").Value
    End Sub

  7. #7
    Registered User
    Join Date
    04-23-2013
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Naming Tabs

    Thanks Jonmo1, the users for this workbook will not be allowed to tamper with VBA. Will keep it simple for their updates. I won't always be around to monitor them! Thanks again.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Naming Tabs

    Good deal then.

+ 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