Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Quick (easy) question....

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    Is there a function I can use that returns the sheet tab name?

    There must be! Thanks in advance guys.

    Robin

  2. #2
    Board Regular
    Join Date
    Apr 2002
    Location
    Surrey, United Kingdom
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    There is not a function that I know of, but someone here may well know of one.

    I know you can use VBA to do it.

    If you wanted cell A1 to display the tagname you could use:

    Sub Insert_Tag_Name()
    ActiveSheet.Range("A1") = ActiveSheet.Name
    End Sub

    Hope this helps,

    Nibbs

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    84,074
    Post Thanks / Like
    Mentioned
    38 Post(s)
    Tagged
    8 Thread(s)

    Default

    On 2002-04-29 02:06, Robin wrote:
    Hi,

    Is there a function I can use that returns the sheet tab name?

    There must be! Thanks in advance guys.

    Robin
    In some cell or even in A1 in the target sheet enter:

    =CELL("filename",A1)

    In A2 enter:

    =MID(A1,SEARCH("]",A1)+1,LEN(A1)-SEARCH("]",A1))

    where A1 houses the first formula.


  4. #4
    Board Regular
    Join Date
    Apr 2002
    Location
    Surrey, United Kingdom
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Sweet. I didn't know about 'filename'!

    Nibbs

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •