1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

setting cell values to worksheet names

Discussion in 'Business Applications' started by The G-man, Mar 31, 2004.

Thread Status:
Not open for further replies.
Advertisement
  1. The G-man

    The G-man Thread Starter

    Joined:
    Jun 3, 2001
    Messages:
    140
    Is there a way to set the value of a cell to the name of that particular worksheet with a function???

    sorry about the consecutive posts, i'm working on a project for work.

    thanks for any help!
     
  2. ddcrab

    ddcrab

    Joined:
    Mar 31, 2004
    Messages:
    1
    Hello:

    Try using the function =cell("filename") in any cell. It will return the complete path including the tab name of the spreadsheet.

    I found this by going to help and looking up information functions.

    Hope this helps.

    ddcrab
     
  3. XL Guru

    XL Guru

    Joined:
    Aug 30, 2003
    Messages:
    2,702
    To extract just the tab name to a cell, use

    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

    The workbook must be saved before this'll work (else you'll get "#VALUE!" IIRC).

    Rgds,
    Andy
     
  4. The G-man

    The G-man Thread Starter

    Joined:
    Jun 3, 2001
    Messages:
    140
    this will be a great help. i did finish my project last night and i will post the code at my other post.

    thanks guys!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/216377

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice