Path is
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1),1)-1)
Sheet name is
=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)
more here
http://www.xldynamic.com/source/xld.xlFAQ0002.html
--
Allllen
"Jeff" wrote:
Hi,
I was using the ' =Cell("Filename") ' function in excel,
But I want to display only the path "= C:\Folder1\Folder2\"
And then I want to display the worksheet name = "worksheet1"
Is there a way to do this?
THanks