Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default How to pick up file name in the cell

I would like to use the name of the file in the cell. How can i do that?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to pick up file name in the cell

=CELL("filename",A1) will even supply you with the path as well.
--
Gary's Student


"Vijay Kotian" wrote:

I would like to use the name of the file in the cell. How can i do that?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default How to pick up file name in the cell

=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.

"Vijay Kotian" wrote:

I would like to use the name of the file in the cell. How can i do that?

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default How to pick up file name in the cell

=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




"Vijay Kotian" wrote:

I would like to use the name of the file in the cell. How can i do that?

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
need to export row as csv file with column e plus .bom as file name rod Excel Discussion (Misc queries) 5 November 2nd 06 03:38 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Write cell info to external file BigIan Excel Worksheet Functions 7 November 14th 05 04:33 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 11:16 AM.

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

About Us

"It's about Microsoft Excel"