A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Sheet Name In Cells



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2003, 01:27 PM
Paul Moles
external usenet poster
 
Posts: n/a
Default Using Sheet Name In Cells

In Excel Xp how do I get a cell to show the sheet
name,alternatively can I get the sheet name to show the
contents of a cell.
  #2  
Old September 17th, 2003, 01:39 PM
Andy Brown
external usenet poster
 
Posts: n/a
Default Using Sheet Name In Cells

In Excel Xp how do I get a cell to show the sheet
name


Use the formula
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

NB - the file must have been saved for this to work.

For the latter, you'd need code eg:
ActiveSheet.Name = Range("A1")
, assuming the content of A1 is a valid sheet name.

Rgds,
Andy


  #3  
Old September 17th, 2003, 01:43 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Using Sheet Name In Cells

Paul,

--

HTH

Bob Phillips

"Paul Moles" wrote in message
...
In Excel Xp how do I get a cell to show the sheet
name,



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

this only works on a saved workbook.

alternatively can I get the sheet name to show the
contents of a cell.


This needs VBA to rename it on demand, it won't reflect changes to the cell
unless you add worksheet change event code. Do you want that?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.