Name off a sheet into a cell

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
 
B

Bob Phillips

=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)
 
G

Gary''s Student

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
 

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