+ Reply to Thread
Results 1 to 5 of 5

Display Workbook Path and Name in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    05-14-2007
    Posts
    46

    Display Workbook Path and Name in a cell

    Hi

    Is there a formula to display the Workbook Path and name in a cell that wil update when the file is opened or saved?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Does this link help

    http://office.microsoft.com/en-us/ex...030101033.aspx

    VBA Noob
    Last edited by VBA Noob; 09-13-2007 at 04:49 AM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    05-14-2007
    Posts
    46
    Perfect - That is EXCATLY what I was looking for:

    '=MID(CELL("filename"),1,FIND("[",CELL("filename"))-1)
    &MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,
    SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1)

    Thank you

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi Richard

    That formula can be simplified:

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

    Richard

  5. #5
    Registered User
    Join Date
    05-14-2007
    Posts
    46
    Hi Richard

    That's neat!!!

    Thank you

    Richard

+ 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