From: Wes_A on
Hi all. Excel 2007 / XP Pro.
Is there a function or formula that will display the currently active
workbook name (without the path or filename extention) in a cell on the
currently open sheet in that workbook? There will be other open workbooks.
Appologies if this is a stupid question.
From: ozgrid.com on
One way
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)


Or see: http://www.ozgrid.com/VBA/WorkbookPath.htm



--
Regards
Dave Hawley
www.ozgrid.com
"Wes_A" <WesA(a)discussions.microsoft.com> wrote in message
news:C249074D-65EF-4593-AA6B-410AF8EE5BA4(a)microsoft.com...
> Hi all. Excel 2007 / XP Pro.
> Is there a function or formula that will display the currently active
> workbook name (without the path or filename extention) in a cell on the
> currently open sheet in that workbook? There will be other open workbooks.
> Appologies if this is a stupid question.