Sheet name question

P

Paul B

Adam, here is one way,

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

file must be saved first


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
G

Gord Dibben

Adam

UDF.............

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

OR........

See Bob Phillips' site for more on sheet and filenames.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben Excel MVP
 
Top