Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I was wondering if there was a way that I can insert the current filename's filepath into a document? I know how to insert into the header/footer but this is not suitable for what I require.
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Cameron,
see my webpage http://www.mvps.org/dmcritchie/excel/excel.htm --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Cameron" wrote in message ... I was wondering if there was a way that I can insert the current filename's filepath into a document? I know how to insert into the header/footer but this is not suitable for what I require. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
File path and file 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("]",CEL L("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1) The sheet name =RIGHT(CELL("filename",A1),LEN(CELL("filename",A1) )-FIND("]",CELL("file name",A1),1)) -- Regards Frank Kabel Frankfurt, Germany Cameron wrote: I was wondering if there was a way that I can insert the current filename's filepath into a document? I know how to insert into the header/footer but this is not suitable for what I require. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell value becomes filepath to insert picture,jpg or object | Excel Worksheet Functions | |||
Filepath | Excel Discussion (Misc queries) | |||
Filepath | Excel Discussion (Misc queries) | |||
Selecting a filepath based on cell contents | Excel Discussion (Misc queries) | |||
get filename and filepath | Excel Programming |