G Guest Nov 16, 2004 #1 How do I get only the filename of the active workbook into a cell. The "CELL" function returns the name including the whole path.
How do I get only the filename of the active workbook into a cell. The "CELL" function returns the name including the whole path.
J JE McGimpsey Nov 16, 2004 #3 Take a look here: Worksheet and Workbook names using the CELL() function: http://www.mcgimpsey.com/excel/formulae/cell_function.html
Take a look here: Worksheet and Workbook names using the CELL() function: http://www.mcgimpsey.com/excel/formulae/cell_function.html
A anilsolipuram Nov 16, 2004 #4 Public Function getfilepath() getfilepath = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name End Function create the the above function and call from your cell by using formulae =getfilepath()
Public Function getfilepath() getfilepath = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name End Function create the the above function and call from your cell by using formulae =getfilepath()