Cell equal to File Name

S

Sloth

=MID(CELL("filename",A1),1+FIND("[",CELL("filename",A1)),FIND(".",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)

This only works if you have saved the file at least once.
 
P

Pedro Serra

Thanks

"Sloth" escreveu:
=MID(CELL("filename",A1),1+FIND("[",CELL("filename",A1)),FIND(".",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)

This only works if you have saved the file at least once.

Pedro Serra said:
Is there a way to put the name of the excel file in a worksheet?

Thanks
 
Top