You can use the function CELL, with the "filename" argument:
=CELL("filename")
This returns the full path. In case you just want the name you may need
to
use some text functions. In the case I tried, with Excel 2003, the file
name
was enclosed in braquets, so this formula gave just the bare name:
=MID(CELL("filename"),FIND("[",CELL("filename"),1)+1,FIND("]",CELL("filename"),1)-FIND("[",CELL("filename"),1)-1)
Hope this helps,
Miguel.
Doug said:
Would like to have a cell value the the name of the excell file I am
creating.
Similar to inserting the file name into the header or footer.