How do I show a tab name in an Excel cell?

G

Guest

Version: Microsoft Office Excel 2003

How can I repeat a sheet's tab name in a cell?

I have a summary sheet which has data fed from multiple other supporting
sheets. The supporting sheets are updated by other users and they modify the
tab name so it reflects their specific subproject effort.

Just as the summary sheet reflects the supporting sheet data, it would be
very helpful to state the tab name so it is clear what the data is
representing (i.e.- the subproject sheet name). I wish to create a link so
if the subproject (tab) name is changed, the summary sheet is automatically
updated.

I had hoped this would be similar to adding the file name and path in a
cell: =cell("filename") however, it is not.
 
G

Guest

Create own module and insert this code:
Public Function name_file()
name_file = ActiveWorkbook.FullName
End Function

In cell write this: =name_file ()

result will full path with name of file.
name_file is your name, if you need different, rename it. ;-)

Peter
 
G

Guest

For sheet name change function to:
Public Function name_sheet()
name_sheet = ActiveSheet.Name
End Function

result will: name of sheet ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top