Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default sheetname value

Is it possible to reflect the worksheet name by value in a cell?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default sheetname value

See http://www.xldynamic.com/source/xld.xlFAQ0002.html

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"crapit" wrote in message
...
Is it possible to reflect the worksheet name by value in a cell?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default sheetname value

In the worksheet you can use the CELL() function.
In VBA something like:

Function sname() As String
sname = Application.Caller.Parent.Name
End Function
--
Gary's Student
gsnu200701


"crapit" wrote:

Is it possible to reflect the worksheet name by value in a cell?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default sheetname value

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

"crapit" wrote:

Is it possible to reflect the worksheet name by value in a cell?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default sheetname value

Sorry, wrong qs, should be changing of worksheet name by value in a cell.
No VBA involve
"crapit" wrote in message
...
Is it possible to reflect the worksheet name by value in a cell?






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default sheetname value

NO. VBA would be required.

Mike F
"crapit" wrote in message
...
Sorry, wrong qs, should be changing of worksheet name by value in a cell.
No VBA involve
"crapit" wrote in message
...
Is it possible to reflect the worksheet name by value in a cell?






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default sheetname value

Hi!

Try this one!

Sub SheetNameCell()
Dim sName As String
sName = Range("A4").Text
Sheets(1).Select
Sheets(1).Name = sName
End Sub

Regards,
Kari J Keinonen
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default sheetname value

"Mike" wrote in message
=MID(CELL("filename"),(FIND("]",CELL("filename"))+1),50)


This formula will get you into trouble when the workbook calculates and the
sheet containing formula is not active. It will return the name of the sheet
that happens to be active when the calculation occurs, NOT the sheet that
contains the formula. To illustrate this, enter the formula on sheet1, go
to sheet2 and do CTRL+ALT+F9 to force a recalculation. You'll see that the
result of the formula is "Sheet2" not "Sheet1".

You need to modify the formula to include a cell reference on the current
sheet. It doesn't matter what cell you use, but you must use something.

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


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Mike" wrote in message
...
=MID(CELL("filename"),(FIND("]",CELL("filename"))+1),50)

"crapit" wrote:

Is it possible to reflect the worksheet name by value in a cell?





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
sheetname tjp[_2_] Excel Worksheet Functions 3 March 5th 09 12:11 PM
Automatically update SheetName in workbook sub if SheetName changes [email protected] Excel Discussion (Misc queries) 3 February 29th 08 04:33 PM
Does anyone see this .xls]sheetname? Eric Excel Worksheet Functions 2 January 21st 07 03:28 PM
Does anyone see this .xls]sheetname? Eric Excel Discussion (Misc queries) 2 January 21st 07 03:04 PM
SheetName J.E. McGimpsey Excel Programming 1 September 2nd 03 04:39 PM


All times are GMT +1. The time now is 09:16 PM.

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

About Us

"It's about Microsoft Excel"