how do I place the sheet tab name in my spreadsheet by formula?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how do I place the sheet tab name in my spreadsheet by formula?

Excel 2003
 
DRHannay said:
how do I place the sheet tab name in my spreadsheet by formula?

Excel 2003

Try:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
 
Alternatively, you could write a one-line function in VBA to do the
same thing, easier:

Function SheetName()
SheetName = ActiveSheet.Name
End Function

If this is stored in Personal.XLS where it is always available, you'd
call it on your worksheet with:

=PERSONAL.XLS!sheetname()

Otherwise, if it's stored in the current Workbook (or in an Add-in
which you enable), you could call it without the reference to
Personal.XLS

Chris
 
Hello,
What would be the formula to add in filename into my spreadsheet?

Paul Moles said:
DRHannay said:
how do I place the sheet tab name in my spreadsheet by formula?

Excel 2003

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

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

Back
Top