L
Leslie
Is there anyway (without using VBA) that I can
automatically have the name of a worksheet appear in cell
A1?
automatically have the name of a worksheet appear in cell
A1?
message news:[email protected]...-----Original Message-----
=CELL("filename")
gives
C:\WINDOWS\Desktop\[Book2.xls]Sheet2
=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,
SEARCH("]",CELL("filename"))-SEARCH("[",CELL ("filename"))-1)("]",CELL("filename")))gives
Book2.xls
=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH
gives
Sheet2
Dan E
"Leslie" <[email protected]> wrote in
Leslie said:That's great, Dan, but when I put that same formula in
cell A1 on different sheets, all the a1 cells change to
that sheet's name. How can I get it to stay different
for each sheet?
message news:[email protected]...-----Original Message-----
=CELL("filename")
gives
C:\WINDOWS\Desktop\[Book2.xls]Sheet2
=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,
SEARCH("]",CELL("filename"))-SEARCH("[",CELL ("filename"))-1)("]",CELL("filename")))gives
Book2.xls
=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH
gives
Sheet2
Dan E
"Leslie" <[email protected]> wrote in
That's great, Dan, but when I put that same formula in
cell A1 on different sheets, all the a1 cells change to
that sheet's name. How can I get it to stay different
for each sheet?
message news:[email protected]...-----Original Message-----
=CELL("filename")
gives
C:\WINDOWS\Desktop\[Book2.xls]Sheet2
=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,
SEARCH("]",CELL("filename"))-SEARCH("[",CELL ("filename"))-1)("]",CELL("filename")))gives
Book2.xls
=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH
gives
Sheet2
Dan E
"Leslie" <[email protected]> wrote in