![]() |
![]() |
|
|||||||
| 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: 6
|
is there a way to insert the worksheet name into a cell
EG: sheet 1 name is "John" sheet 2 name is "brian" on another worksheet "summary" i want to insert these two worksheet names in cells a1 and a2. regards |
|
|
|
|
|
#2 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
I don't know if this is the easiest way, but this formula seems to work:
=MID(CELL("filename"),FIND("]",CELL("filename"))+1,20) (Change the 20 at the end of the formula to the maximum length you expect the sheet name might be.) |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: Canberra AU
Posts: 7
|
=RIGHT(CELL("Filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))
and another Dave |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
these work, but what i would really like to do is be able to drag down so it finds the next worksheet name, and the next, etc.....
i have 26 sheets in total |
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
|
Quote:
http://www.mrexcel.com/board/viewtop...c=3816&forum=2 |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|