tab names

  • Thread starter Thread starter Allan
  • Start date Start date
A

Allan

Does anyone know if there is a function to display the worksheet name within
the worksheet?
 
File path, file and worksheet name:
=CELL("filename",A1)
File path only:
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1),1)-1)
File name only:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)
The sheet name:
=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)
Restrictions
This technique only works for workbooks that have been saved, at least once.

==============
copied from http://www.xldynamic.com/source/xld.xlFAQ0002.html
best wishes
 
Back
Top