For no workbook name or filepath, the following works well, if your workbook is saved.
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))
But, my personal favorite is to throw the following function in a normal module:<pre>
Function sheet()
Application.Volatile
sheet = Sheets(Application.Caller.Parent.Index).Name
End Function</pre>
Now use =sheet() on any sheet. The workbook does not have to be saved.
_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue"> Oliver</font></font></font>
This message was edited by NateO on 2002-06-25 14:34