ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need Worksheet Code (https://www.excelbanter.com/excel-worksheet-functions/78127-need-worksheet-code.html)

jacob

Need Worksheet Code
 
I need to find out how to place the name of the current tab or active tab in
a cell How do i do this. It is easy to do in a Header of Footer but i want to
be able to do it in a cell.

Thanks!!!

Chip Pearson

Need Worksheet Code
 
Jacob,

Try the following formula

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

The file must have been saved for this to work. It won't work if
the file has never been saved.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"jacob" wrote in message
...
I need to find out how to place the name of the current tab or
active tab in
a cell How do i do this. It is easy to do in a Header of Footer
but i want to
be able to do it in a cell.

Thanks!!!




Sloth

Need Worksheet Code
 
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1) )-FIND("]",CELL("filename",A1)))

you need to have saved the file at least once before it will work.

"jacob" wrote:

I need to find out how to place the name of the current tab or active tab in
a cell How do i do this. It is easy to do in a Header of Footer but i want to
be able to do it in a cell.

Thanks!!!


jacob

Need Worksheet Code
 
Thanks guys!!!!!!!!!!!!!!!!!!11

"Sloth" wrote:

=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1) )-FIND("]",CELL("filename",A1)))

you need to have saved the file at least once before it will work.

"jacob" wrote:

I need to find out how to place the name of the current tab or active tab in
a cell How do i do this. It is easy to do in a Header of Footer but i want to
be able to do it in a cell.

Thanks!!!



All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com