TAB name

  • Thread starter Thread starter Laura
  • Start date Start date
One way:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

or this UDF:

Public Function SheetName(Optional ByVal rng As Range) As String
Application.Volatile
If rng Is Nothing Then Set rng = Application.Caller
SheetName = rng.Parent.Name
End Function
 

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

Back
Top