Name off a sheet into a cell

  • Thread starter Thread starter Palle korsholm
  • Start date Start date
P

Palle korsholm

I have a woorkbook and I like to put the names of one of the sheets into a
cell on one of the other sheets.

EX
Iin sheet 1 cell A1 I like to have the name of the 3th sheet in the workbook
 
=MID(CELL("filename",Sheet3!A1),FIND("]",CELL("filename",Sheet3!A1))+1,99)

I know this requires the name of the sheet, but if you change it, the
formula picks up the change.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Here is a one-line UDF:

Function shname(i As Integer) As String
shname = Sheets(i).Name
End Function

For example, =shname(2) will return the name of the 2nd sheet
 
Back
Top