+ Reply to Thread
Results 1 to 2 of 2

Displaying worksheet tab name on an Excel worksheet?

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    Bartlesville, OK
    MS-Off Ver
    Excel 2007
    Posts
    1

    Displaying worksheet tab name on an Excel worksheet?

    Is there a function that allows the user to display the name of the worksheet tab on the worksheet itself or would it have to be created in VBA? How about doing the same with the workbook file name? I know you can insert both fields in the document header or footer, but have yet to find a way to display this information in a cell in the body of the worksheet.

    I'm using Excel 2007 as a pilot Office 2007 rollout program but I have co-workers who are using Excel 2003.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Displaying worksheet tab name on an Excel worksheet?

    SRL55,

    Welcome to the forum!
    Attached is an example workbook based on the requested criteria.

    In Cell B1 of each worksheet is the formula for the worksheet name:
    =MID(CELL("filename",$A$1),FIND("]",CELL("filename",$A$1))+1,99)

    In Cell B2 of each worksheet is the formula for the workbook name:
    =MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1))+1,FIND("]",CELL("filename",$A$1))-FIND("[",CELL("filename",$A$1))-1)
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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