worksheetname in a cell

  • Thread starter Thread starter Guest
  • Start date Start date
one way:

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

Note: The file needs to be saved for this to work.
 
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
 
Back
Top