Display File Name in Cell

C

Corey

Thanks

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

Thank You


Corey....
 
D

Dave Peterson

=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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top