ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   sheet name as cell : link? (https://www.excelbanter.com/excel-programming/291907-sheet-name-cell-link.html)

mike

sheet name as cell : link?
 
I have a cell or cells that are goign to be named the
same as the sheet name is . Is it possible to link thm
together?? Or do i need to macro that? I wanted to have a
cell in there that if the sheet name needed to be
changed.the cell to change too. that cell is refernced in
a code.

thanks!!

Frank Kabel

sheet name as cell : link?
 
Hi
no code required :-) Try
For the sheet name:
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1) )-FIND("]",CELL("file
name",A1),1))

File path and file name:
=CELL("filename",A1)

File path only
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1),1)-1)

File name only
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CEL
L("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)


--
Regards
Frank Kabel
Frankfurt, Germany

mike wrote:
I have a cell or cells that are goign to be named the
same as the sheet name is . Is it possible to link thm
together?? Or do i need to macro that? I wanted to have a
cell in there that if the sheet name needed to be
changed.the cell to change too. that cell is refernced in
a code.

thanks!!



M

sheet name as cell : link?
 
thank you
-----Original Message-----
Hi
no code required :-) Try
For the sheet name:
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1 ))-FIND

("]",CELL("file
name",A1),1))

File path and file name:
=CELL("filename",A1)

File path only
=LEFT(CELL("filename",A1),FIND("[",CELL

("filename",A1),1)-1)

File name only
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)

+1,FIND("]",CEL
L("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)


--
Regards
Frank Kabel
Frankfurt, Germany

mike wrote:
I have a cell or cells that are goign to be named the
same as the sheet name is . Is it possible to link thm
together?? Or do i need to macro that? I wanted to

have a
cell in there that if the sheet name needed to be
changed.the cell to change too. that cell is refernced

in
a code.

thanks!!


.



All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com