Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Function to insert current filename into worksheet?

Hi

I'd like to know if there is a function that I can use to put the current
fileame into a cell in my worksheet?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Function to insert current filename into worksheet?

I just learnt this from other helpful people in this Discussion Group. It
will return the latest worksheet name to you, if change "]" to "[" and 1 to
0, then will give you file name and sheet name. See what you wants it and do
a little modification.

=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)

This is a link they refer to, have a look/
http://www.xldynamic.com/source/xld.xlFAQ0002.html

Hope it helps.


"Ginko" wrote:

Hi

I'd like to know if there is a function that I can use to put the current
fileame into a cell in my worksheet?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Function to insert current filename into worksheet?

And remember that without the range reference:
=CELL("filename",A1)

You'll get the info from worksheet/workbook that is active when excel
recalculates.

Bob goes into more info at the link.

Learn-more wrote:

I just learnt this from other helpful people in this Discussion Group. It
will return the latest worksheet name to you, if change "]" to "[" and 1 to
0, then will give you file name and sheet name. See what you wants it and do
a little modification.

=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)

This is a link they refer to, have a look/
http://www.xldynamic.com/source/xld.xlFAQ0002.html

Hope it helps.

"Ginko" wrote:

Hi

I'd like to know if there is a function that I can use to put the current
fileame into a cell in my worksheet?

Thanks


--

Dave Peterson
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
I can't insert a worksheet into my current spreadsheet file John Falkenstine Excel Worksheet Functions 3 October 10th 07 01:24 AM
how get filename with worksheet function? Ian Elliott Excel Worksheet Functions 8 June 26th 06 08:31 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
How do I insert the filename to a specific cell of the worksheet? Rozoga Excel Discussion (Misc queries) 1 February 10th 06 05:43 PM
Function to return the current Worksheet name? Steve Excel Worksheet Functions 6 June 29th 05 04:36 AM


All times are GMT +1. The time now is 09:04 AM.

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"