Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how to insert the path and filename into cell in excel 2002

how to insert the path and filename into cell in excel 2002
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default how to insert the path and filename into cell in excel 2002

See

http://www.mcgimpsey.com/excel/formu..._function.html

In article ,
fuzzylinux wrote:

how to insert the path and filename into cell in excel 2002

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how to insert the path and filename into cell in excel 2002

Copied from Bob Phillips' site........note: leave the "filename" as is. Do not
substitute your file name.

File path, file and worksheet 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("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)

The sheet name:
=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

Restrictions
This technique only works for workbooks that have been saved, at least once.

http://www.xldynamic.com/source/xld.xlFAQ0002.html for more details if you need
them.


Gord Dibben MS Excel MVP

On Wed, 4 Jun 2008 12:31:03 -0700, fuzzylinux
wrote:

how to insert the path and filename into cell in excel 2002


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Path and filename displayed in Excel falcios Excel Discussion (Misc queries) 3 October 10th 07 08:26 PM
How do I insert the filename of the worksheet into a cell? joeker Excel Discussion (Misc queries) 2 April 10th 06 01:33 PM
Are there template footers for "Filename and Path" in Excel. How? Barb22 Excel Discussion (Misc queries) 1 October 10th 05 09:04 AM
Excel 2K: Putting Filename & path in footer FinChase Excel Discussion (Misc queries) 1 March 14th 05 08:12 PM
Insert value of a cell as a filename Ralph Howarth Excel Worksheet Functions 0 January 18th 05 12:03 AM


All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"