Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
milnei
 
Posts: n/a
Default How to show Excel Filename in the worksheet


Hi everyone.

I have a very simple request, but I have been unable to find the
answer.

I want to have the filename of the excel file shown in a cell in that
file. Similar to the &[File] command in the header or footer, but
shown in a cell that can then be reffered to in other worksheets.

I hope someone knows the answer.

Cheers

Ian


--
milnei
------------------------------------------------------------------------
milnei's Profile: http://www.excelforum.com/member.php...o&userid=28235
View this thread: http://www.excelforum.com/showthread...hreadid=477853

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default How to show Excel Filename in the worksheet

One way

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file
name",A1))-FIND("[",CELL("filename",A1))-1)

the reference to A1 can be any replaced by any cell, even the cell that
holds the formula

--

Regards,

Peo Sjoblom

"milnei" wrote in
message ...

Hi everyone.

I have a very simple request, but I have been unable to find the
answer.

I want to have the filename of the excel file shown in a cell in that
file. Similar to the &[File] command in the header or footer, but
shown in a cell that can then be reffered to in other worksheets.

I hope someone knows the answer.

Cheers

Ian


--
milnei
------------------------------------------------------------------------
milnei's Profile:

http://www.excelforum.com/member.php...o&userid=28235
View this thread: http://www.excelforum.com/showthread...hreadid=477853



  #3   Report Post  
milnei
 
Posts: n/a
Default How to show Excel Filename in the worksheet


Fantastic, Christmas has come early...... :)


--
milnei
------------------------------------------------------------------------
milnei's Profile: http://www.excelforum.com/member.php...o&userid=28235
View this thread: http://www.excelforum.com/showthread...hreadid=477853

  #4   Report Post  
Posted to microsoft.public.excel.misc
Simon G
 
Posts: n/a
Default How to show Excel Filename in the worksheet

Hi

Could you tell me how to get the 'tab' name of the excel file shown in a
cell in that
file. Similar to the &[Tab] command in the header or footer.

Thanks you your help.


"Peo Sjoblom" wrote:

One way

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file
name",A1))-FIND("[",CELL("filename",A1))-1)

the reference to A1 can be any replaced by any cell, even the cell that
holds the formula

--

Regards,

Peo Sjoblom

"milnei" wrote in
message ...

Hi everyone.

I have a very simple request, but I have been unable to find the
answer.

I want to have the filename of the excel file shown in a cell in that
file. Similar to the &[File] command in the header or footer, but
shown in a cell that can then be reffered to in other worksheets.

I hope someone knows the answer.

Cheers

Ian


--
milnei
------------------------------------------------------------------------
milnei's Profile:

http://www.excelforum.com/member.php...o&userid=28235
View this thread: http://www.excelforum.com/showthread...hreadid=477853




  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How to show Excel Filename in the worksheet

Debra Dalgleish shows a way at:
http://contextures.com/xlfaqFun.html#SheetName

Simon G wrote:

Hi

Could you tell me how to get the 'tab' name of the excel file shown in a
cell in that
file. Similar to the &[Tab] command in the header or footer.

Thanks you your help.

"Peo Sjoblom" wrote:

One way

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file
name",A1))-FIND("[",CELL("filename",A1))-1)

the reference to A1 can be any replaced by any cell, even the cell that
holds the formula

--

Regards,

Peo Sjoblom

"milnei" wrote in
message ...

Hi everyone.

I have a very simple request, but I have been unable to find the
answer.

I want to have the filename of the excel file shown in a cell in that
file. Similar to the &[File] command in the header or footer, but
shown in a cell that can then be reffered to in other worksheets.

I hope someone knows the answer.

Cheers

Ian


--
milnei
------------------------------------------------------------------------
milnei's Profile:

http://www.excelforum.com/member.php...o&userid=28235
View this thread: http://www.excelforum.com/showthread...hreadid=477853





--

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How to show query parameters on an Excel page header or worksheet? Paul Jones Excel Discussion (Misc queries) 0 September 7th 05 05:18 PM
Microsoft Excel Viewer 2003 won't open Microsoft Excel Worksheet Graham Jones Excel Discussion (Misc queries) 1 May 13th 05 12:58 AM
exporting excel worksheet to word morrowkd Links and Linking in Excel 1 May 11th 05 11:23 PM
Create New Microsoft Excel Worksheet Has 3 Sheets Bassam Setting up and Configuration of Excel 0 February 9th 05 08:51 PM


All times are GMT +1. The time now is 04:27 PM.

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"