Display File Name in Cell

  • Thread starter Thread starter Corey
  • Start date Start date
Thanks

Tried that origianlly but only displayed the 'CELL("filename")' as text.,
Is Ok now

Thank You


Corey....
 
=cell("filename")
will evaluate to the workbook name that was active when excel recalculated.

=cell("filename",a1) will return that workbook/worksheet for the cell with the
formula.

You can visit Chip Pearson's site for a bunch of formulas:
http://www.cpearson.com/excel/excelF.htm#FileName

ps. The workbook has to be saved at least once.
 
Back
Top