View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default referencing the name of a worksheet

try

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

which returns "Sheet2"

"Simon P California" wrote:

How can I refer to the 'name' of a worksheet in a cell.
So that if I change the name of the worksheet, the new name will be
reflected in that cell.

(like worksheet1.name, reference the 'name attribute' of a worksheet).

Thanks in advance,
Simon