Not sure about that but I do know if you type the code
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1))) into A1, it will say the Tab name as the text in A1. Thats the best I can do for you.
Thanks Hotpepper, but I must be doing something terribly wrong. I copy that code ( it's honestly the 40th or more that I've tried so far ) into a module for that sheet and click out of the module but the sheet still isn't renamed. Was I supposed to do something extra ??
Mine uses the Change event so that when you change the value in A1, it changes the name of the sheet. If you want to keep the existing value in A1, go into cell A1, hit the F2 key and then Enter. Then everytime you change this cell after that it will change the name of the sheet, assuming it is a valid sheet name.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.