![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
Is there a formula for getting the worksheet tab name as a cell value ??? Or would a macro be the only way ???
Thanks for the help !!! Alleleuia, Bruce Radic |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Best I can come up with here is to type in something like
Range("A1") = activesheet.name in the immediate window. Hope this helps RET79 |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
or
Sub cellval() Range("a1").Value = ActiveSheet.Name End Sub will do it I couldn't get the first example above to work? [ This Message was edited by: brettvba on 2002-04-21 17:35 ] |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Hi,
Standard way using a cell formula =RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1),1)) The workbook must have been saved for this approach to work. Alternatively, you can write simple UDF: ----------------------- Function NameSheet() NameSheet = Application.Caller.Parent.Name End Function ------------------------ Called as =NameSheet() Bye, Jay [ This Message was edited by: Jay Petrulis on 2002-04-21 18:27 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|