简体   繁体   中英

link tab name of a worksheet to a cell in excel

how can I link the tab name of an excel sheet to a cell? Do I have to write a macro with VBA? or can I use a function therefore?

Why I need this is: When I change the name of the tab I want to take it on for a cell in another worksheet.

thx all.

Write the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))

When you change the name of the worksheet, it will change. About the CELL worksheet function, read more here: http://www.cpearson.com/excel/CellWorksheetFunctions.aspx

You actually have to write =CELL("filename") to get the name of the tab plus the path of the worksheet. And "filename" should be written.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM