Hi,
You need to add a reference to the CELL function in order to get each
individual sheet.
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))
Cheers
Andy
--
Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
<(E-Mail Removed)> wrote in message
news:f0dc611c-48e4-4bce-aa4f-(E-Mail Removed)...
>I am new to excel programming, and hope someone can help me out here.
>
> I have a large excel workbook with many worksheet, I wish to use this
> function and put worksheet name on the top of each sheet. The
> function I have is RIGHT(CELL("filename")|LEN(CELL("filename"))-
> FIND("]"|CELL("filename"))).
> The problem is it doesn't automatically refresh when I move from sheet
> to sheet.
>
> Thank in advance,
>
> John