+ Reply to Thread
Results 1 to 3 of 3

File name

Hybrid View

achmidt File name 11-15-2011, 04:03 PM
Steffen Thomsen Re: File name 11-15-2011, 04:15 PM
tigeravatar Re: File name 11-15-2011, 04:17 PM
  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    File name

    Hi!

    Is there any function in Excel 2007 that brings up the file name in to the cell? =ThisWorkbook.Name????

    Thanks,
    Alex.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: File name

    Sub steffen()
    Range("A1").Value = ThisWorkbook.Name
    End Sub

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: File name

    =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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