worksheetname in a cell

  • Thread starter worksheetname in a cell
  • Start date
W

worksheetname in a cell

How can I get the name of a worksheet in a cell of that worksheet?

Thank you
 
J

J.E. McGimpsey

one way:

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

Note: The file needs to be saved for this to work.
 
T

Tommy Flynn

Sub ShowName()
Range("A1") = ActiveSheet.Name
End Sub

Regards,

Tommy Flynn


J.E. McGimpsey said:
one way:

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

Note: The file needs to be saved for this to work.

How can I get the name of a worksheet in a cell of that worksheet?

Thank you
 

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