Hi!
Is there any function in Excel 2007 that brings up the file name in to the cell? =ThisWorkbook.Name????
Thanks,
Alex.
Hi!
Is there any function in Excel 2007 that brings up the file name in to the cell? =ThisWorkbook.Name????
Thanks,
Alex.
![]()
Sub steffen() Range("A1").Value = ThisWorkbook.Name End Sub
=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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks