View Single Post
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default How to show Excel Filename in the worksheet

One way

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file
name",A1))-FIND("[",CELL("filename",A1))-1)

the reference to A1 can be any replaced by any cell, even the cell that
holds the formula

--

Regards,

Peo Sjoblom

"milnei" wrote in
message ...

Hi everyone.

I have a very simple request, but I have been unable to find the
answer.

I want to have the filename of the excel file shown in a cell in that
file. Similar to the &[File] command in the header or footer, but
shown in a cell that can then be reffered to in other worksheets.

I hope someone knows the answer.

Cheers

Ian


--
milnei
------------------------------------------------------------------------
milnei's Profile:

http://www.excelforum.com/member.php...o&userid=28235
View this thread: http://www.excelforum.com/showthread...hreadid=477853