Hi Guys,
Ive got the following code which takes the name of the worksheet modifies it slighty and displays it in a cell. e.g.
worksheet name: 'TM L 1'
Cell A1 will display: 'Transmission Line 1'
=SUBSTITUTE(RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"))),"TM L","Transmission Line")
My problem is that when i create a new sheet it evaultes the code; changes the name to, lets say 'Transmission Line 2' however it also changes the name in the previous sheet to be the same as that of the new sheet.
Does anyone have any ideas what can be done to solve this problem?
Thanks
Chris
Ive got the following code which takes the name of the worksheet modifies it slighty and displays it in a cell. e.g.
worksheet name: 'TM L 1'
Cell A1 will display: 'Transmission Line 1'
=SUBSTITUTE(RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"))),"TM L","Transmission Line")
My problem is that when i create a new sheet it evaultes the code; changes the name to, lets say 'Transmission Line 2' however it also changes the name in the previous sheet to be the same as that of the new sheet.
Does anyone have any ideas what can be done to solve this problem?
Thanks
Chris