ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   'name of spreadsheet' function... please help (https://www.excelbanter.com/excel-worksheet-functions/150342-name-spreadsheet-function-please-help.html)

TB

'name of spreadsheet' function... please help
 
I am looking for a function/formulae that will return the name of the active
workbook (i.e. the name of the file I am working on). Can anybody help?

Mike H

'name of spreadsheet' function... please help
 
Try

Full path and filename
=CELL("filename")

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

Mike



"TB" wrote:

I am looking for a function/formulae that will return the name of the active
workbook (i.e. the name of the file I am working on). Can anybody help?


Bob Phillips

'name of spreadsheet' function... please help
 
See http://www.xldynamic.com/source/xld.xlFAQ0002.html

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"TB" wrote in message
...
I am looking for a function/formulae that will return the name of the
active
workbook (i.e. the name of the file I am working on). Can anybody help?





All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com