Insert file name into Cell

D

David McRitchie

Hi Bonny,

1996FEDT.XLS

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

D:\driveM\excel\TAXES\1996FEDT.XLS [Sheet1]
=SUBSTITUTE(SUBSTITUTE(CELL("filename",A1),"[",""),"]"," [") & "]"

for more information, worksheet examples, and coding examples for
pathname, filename, sheetname and combinations of such see
http://www.mvps.org/dmcritchie/excel/pathname.htm
 
Top