Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Is it possible to get the filename of an excel-file into cel A1? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() With a formula for a Saved file, there are various ways such as: =MID(LEFT(CELL("filename", A1), FIND("]", CELL("filename", A1))-1),FIND("[", CELL("filename",A1))+1, 255) above as one line Or with vba, Sub test2() Range("A1").Value = ActiveWorkbook.Name End Sub Regards, Sandy -----Original Message----- Hi, Is it possible to get the filename of an excel-file into cel A1? Thanks . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Use (just insert the formulas as-is. Note: the workbook has to be saved before) =MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1) +1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL ("filename",A1),1)-1) -----Original Message----- Hi, Is it possible to get the filename of an excel-file into cel A1? Thanks . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the reply...
Tried to enter it in cell A1 but got an error .... JP "Frank Kabel" schreef in bericht ... Hi Use (just insert the formulas as-is. Note: the workbook has to be saved before) =MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1) +1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL ("filename",A1),1)-1) -----Original Message----- Hi, Is it possible to get the filename of an excel-file into cel A1? Thanks . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filename in Excel Cell Address | Excel Discussion (Misc queries) | |||
how to insert the path and filename into cell in excel 2002 | Excel Discussion (Misc queries) | |||
Cell("filename") doesn't update to new filename when do save as. | Excel Worksheet Functions | |||
Excel - print to .pdf using filename reference from cell | Excel Discussion (Misc queries) | |||
Save excel file with filename = cell text | Excel Programming |