Results 1 to 4 of 4

Thread: Excel Filename

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Posts
    155

    Excel Filename

    Is there a way to get a cell to show the current filename?

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Posts
    155
    Originally posted by MartinLiss
    I'm no Excel expert but I was fooling around and came up with this.

    =CELL("filename",A1)

    (The file has to have been saved)
    I was hoping to get just the filename. Not the complete path including the worksheet name.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Posts
    155

    POSSIBLE RESOLUTION

    Originally posted by MartinLiss
    I'm no Excel expert but I was fooling around and came up with this.

    =CELL("filename",A1)

    (The file has to have been saved)
    This is what I came up with so far.

    =LEFT(MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,255),FIND(".",MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,255))+3)

Posting Permissions

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



Click Here to Expand Forum to Full Width