+ Reply to Thread
Results 1 to 5 of 5

Worksheet Tab name

Hybrid View

  1. #1
    Registered User
    Join Date
    08-23-2007
    Posts
    47

    Worksheet Tab name

    I want to be able to reference the name of the worksheet, ie the tab name.

    In a header/footer the worksheet name can be entered by using &tab.
    This does not seem to work in a cell.

    The formulas for inserting filenames with woksheetname etc are difficult to decifer as to where the woksheet name is.

    Has anyone needed this before ?

    Please Help !

  2. #2
    Registered User
    Join Date
    08-19-2007
    Posts
    40

    Obtaining Worksheet Tab name

    Hi Telton

    The only way this can be done is via a Macro. I have attached an example workbook which displays the current worksheet name that you currently are on.

    Please the following formula in any cell.

    =GetWorksheetname()


    Option Explicit
    
    Function GetWorksheetname()
       GetWorksheetname = ActiveSheet.Name
    End Function
    Hope this is what you are after.

    Cheers, :-)
    Attached Files Attached Files
    Kind Regards,

    Steven Daniel
    ONTRACK SOFTWARE & TECHNOLOGY SOLUTIONS
    http://www.ontrack-software.com.au/

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by Steven_Daniel
    Hi Telton

    The only way this can be done is via a Macro. I have attached an example workbook which displays the current worksheet name that you currently are on.

    Please the following formula in any cell.

    =GetWorksheetname()


    Option Explicit
    
    Function GetWorksheetname()
       GetWorksheetname = ActiveSheet.Name
    End Function
    Hope this is what you are after.

    Cheers, :-)
    this formula will work
    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

    the workbook needs to be saved for the formula to work

  4. #4
    Registered User
    Join Date
    08-23-2007
    Posts
    47
    Cool,

    Works Great!

    Thanks

  5. #5
    Registered User
    Join Date
    08-19-2007
    Posts
    40

    Worksheet Tab name

    Hi Telton

    Thanks for the feedback.

    Cheers,

+ 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