How to pick up file name in the cell

G

Gary Rowe

=cell("filename", A1) returns the filename (including full path) of the file
that contains reference, as text. Returns empty text ("") if the worksheet
that contains reference has not yet been saved.
 
C

CLR

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

Workbook must be saved once first........

Vaya con Dios,
Chuck, CABGx3
 
Top