ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   cell needs to show tab text (https://www.excelbanter.com/excel-worksheet-functions/191968-cell-needs-show-tab-text.html)

Klee

cell needs to show tab text
 
I have a multi-tabbed workbook. I would like to link a cell to the text
entered on the worksheet tab... I've seen it done before - but don't know how
they were able to do that... Can someone fill me in?

Thanks!

Mike H

cell needs to show tab text
 
Hi,

Try this

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

The workbook must be saved for it to work.

Mike

"klee" wrote:

I have a multi-tabbed workbook. I would like to link a cell to the text
entered on the worksheet tab... I've seen it done before - but don't know how
they were able to do that... Can someone fill me in?

Thanks!


Klee

cell needs to show tab text
 
Mike,
Thanks. I tried that - however - - - it only kinda worked... Here's whats
happening...
I have 8 tabs in this workbook. I entered this formula separately on to
each worksheet - but regardless of which worksheet I placed it on the same
result appears on each... for example, text from tab one appears on all other
worksheets.

"Mike H" wrote:

Hi,

Try this

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

The workbook must be saved for it to work.

Mike

"klee" wrote:

I have a multi-tabbed workbook. I would like to link a cell to the text
entered on the worksheet tab... I've seen it done before - but don't know how
they were able to do that... Can someone fill me in?

Thanks!


Mike H

cell needs to show tab text
 
Hi,

I'm at a complete loss to explain that prehaps someone else can.

Mike

"klee" wrote:

Mike,
Thanks. I tried that - however - - - it only kinda worked... Here's whats
happening...
I have 8 tabs in this workbook. I entered this formula separately on to
each worksheet - but regardless of which worksheet I placed it on the same
result appears on each... for example, text from tab one appears on all other
worksheets.

"Mike H" wrote:

Hi,

Try this

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

The workbook must be saved for it to work.

Mike

"klee" wrote:

I have a multi-tabbed workbook. I would like to link a cell to the text
entered on the worksheet tab... I've seen it done before - but don't know how
they were able to do that... Can someone fill me in?

Thanks!


Nayab

cell needs to show tab text
 
On Jun 19, 11:42*pm, Mike H wrote:
Hi,

I'm at a complete loss to explain that prehaps someone else can.

Mike



"klee" wrote:
Mike,
Thanks. *I tried that - however - - - it only kinda worked... Here's whats
happening...
I have 8 tabs in this workbook. *I entered this formula separately on to
each worksheet - but regardless of which worksheet I placed it on the same
result appears on each... for example, text from tab one appears on all other
worksheets.


"Mike H" wrote:


Hi,


Try this


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


The workbook must be saved for it to work.


Mike


"klee" wrote:


I have a multi-tabbed workbook. *I would like to link a cell to the text
entered on the worksheet tab... I've seen it done before - but don't know how
they were able to do that... *Can someone fill me in?


Thanks!- Hide quoted text -


- Show quoted text -


Make this function :::
Function sheet_name(sheet_index As Integer) As String
sheet_name = Worksheets(sheet_index).Name
End Function

and then call it from the cell as sheet_name(1)

Dave Peterson

cell needs to show tab text
 
Make sure you include a reference to the worksheet you want:

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

Otherwise, excel will use the activeworkbook/activeworksheet when it evaluates
that formula.

You can use any cell on the sheet. I like to use the cell that contains the
formula.

klee wrote:

Mike,
Thanks. I tried that - however - - - it only kinda worked... Here's whats
happening...
I have 8 tabs in this workbook. I entered this formula separately on to
each worksheet - but regardless of which worksheet I placed it on the same
result appears on each... for example, text from tab one appears on all other
worksheets.

"Mike H" wrote:

Hi,

Try this

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

The workbook must be saved for it to work.

Mike

"klee" wrote:

I have a multi-tabbed workbook. I would like to link a cell to the text
entered on the worksheet tab... I've seen it done before - but don't know how
they were able to do that... Can someone fill me in?

Thanks!


--

Dave Peterson


All times are GMT +1. The time now is 07:25 AM.

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