![]() |
![]() |
|
|||||||
| 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
|
How can you put the name of the woeksheet (tab) in a specified cell in excel
[ This Message was edited by: JANICE_SMOKEY on 2002-04-24 06:32 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Las Vegas Nevada USA
Posts: 240
|
Put this formula into whatever cell you want the Tab name.
=MID(CELL("filename",G223),FIND("]",CELL("filename",G223))+1,LEN(CELL("filename",G223))-FIND("]",CELL("filename",G223)))
__________________
George Learn to listen. Opportunity sometimes knocks very softly. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
|
This will put the worksheet name into any cell reference (in this case A1)
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1),1)+1,255)
__________________
- old, slow, and confused ... but at least I'm inconsistent - (retired Excel 2003 user, 3.28.2008)
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
I cannot get either of these to work.
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Make sure you're using these formulas in a workbook that has been saved.
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
You can also use VBA code
Range("$A$4")=ActiveSheet.Name Use this in an event procedure such as Activate or Befor Print, or some other macro |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|