=sheettab

F

ForSale

is it possible to have a cell reference the name of the sheet tab? fo
instance, ="Number of audits for "& sheettab i'm on excel 2002 SP3, X
pro.
thank
 
G

Gord Dibben

Using Excel's built-in functions.......

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

will return just the sheet name.

A UDF would be much neater and less typing.

Function SheetName(Optional ByVal rng As Range) As String
Application.Volatile
If rng Is Nothing Then Set rng = Application.Caller
SheetName = rng.Parent.Name
End Function

Usage is: ="Number of audits for " & SheetName()

Gord Dibben Excel MVP
 

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