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.

Excel 2000 Insert file name & path

Discussion in 'Business Applications' started by Redline, Oct 10, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. Redline

    Redline Thread Starter

    Joined:
    Oct 9, 2003
    Messages:
    6
    How do I show a file name and path in a cell? I do not want it in a header or footer.

    Redline
     
  2. XL Guru

    XL Guru

    Joined:
    Aug 30, 2003
    Messages:
    2,702
    Use this formula -

    =LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1)))

    The file must be saved first for it to work.

    Rgds,
    Andy
     
  3. XL Guru

    XL Guru

    Joined:
    Aug 30, 2003
    Messages:
    2,702
    If you need to lose the brackets, use

    =SUBSTITUTE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),"[","")

    One string, no spaces.

    Rgds,
    Andy
     
  4. CastleHeart

    CastleHeart

    Joined:
    May 4, 2002
    Messages:
    743
    XLG ,

    Look up your sleeve and see if you got one that will work in a .XLT ?



    - C










    Without the future....
    there would be no tomorrow!
     
  5. XL Guru

    XL Guru

    Joined:
    Aug 30, 2003
    Messages:
    2,702
    Not AFAIK. Browsed a bit, but don't see how since the function returns null until the file is saved.

    Maybe with the formula in place you could prompt to save in Workbook_Open (if(iserror)) then recalc ; but of course would depend on what you're actually trying to do.

    Rgds,
    Andy
     
  6. Sponsor

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/170954

  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