Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Davey
 
Posts: n/a
Default Worksheet tab in cell

Thanks to this forum, I have learned to use the MID(..Cell(..))
functions to display the worksheet part of a filename in a cell, which I
use for automatically dating my weekly timecard, using the tab name as
the only reference I need to change. It then automatically dates the
days for me.

However, when I send a copy of the sheet to my dept. secretary, once on
her computer, the filename's path is completely different, and the
reference comes up as gibberish.

Any idea as to how to extract just the sheet name, without using the
whole filename? Or can I easily lock the cell's value, so that it
doesn't change even when the location changes?

Davey.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default Worksheet tab in cell

Davey, not sure what you are using but this will return just the sheet name,
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Davey" wrote in message
...
Thanks to this forum, I have learned to use the MID(..Cell(..))
functions to display the worksheet part of a filename in a cell, which I
use for automatically dating my weekly timecard, using the tab name as
the only reference I need to change. It then automatically dates the
days for me.

However, when I send a copy of the sheet to my dept. secretary, once on
her computer, the filename's path is completely different, and the
reference comes up as gibberish.

Any idea as to how to extract just the sheet name, without using the
whole filename? Or can I easily lock the cell's value, so that it
doesn't change even when the location changes?

Davey.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Davey
 
Posts: n/a
Default Worksheet tab in cell

Paul B wrote:
Davey, not sure what you are using but this will return just the sheet name,
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

That's what I have been using, without the 'FIND' part. It may make the
difference. I'll try it.

Thanks.

Davey.
  #4   Report Post  
Posted to microsoft.public.excel.misc
Desert Piranha
 
Posts: n/a
Default Worksheet tab in cell


Davey Wrote:
Paul B wrote:
Davey, not sure what you are using but this will return just the

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

That's what I have been using, without the 'FIND' part. It may make
the
difference. I'll try it.

Thanks.

Davey.Hi Davey,


I believe the workbook must be saved before the formula will work.

If your interested in a macro try this (change the "A3" to the cell
where you want the result).
It wil go into the "WorkBook Module"

This would be for all sheets in a Workbook, as they become active.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Range("A3").FormulaR1C1 = ActiveSheet.Name
End Sub


--
Desert Piranha


------------------------------------------------------------------------
Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934
View this thread: http://www.excelforum.com/showthread...hreadid=525081

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 add cell comments in unlocked cell on protected worksheet dan400man Excel Discussion (Misc queries) 3 December 16th 05 08:02 PM
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
Conversion of Cell Contents into a Functional Worksheet name ? GMJT Excel Worksheet Functions 1 August 21st 05 04:59 PM
Refrencing another cell in a worksheet that "could" exist KimberlyC Excel Worksheet Functions 1 February 7th 05 07:09 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 06:39 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"