On Sun, 17 Jul 2005 03:29:16 GMT, "Stan Banner" <[email protected]>
wrote:
>Can any one show me a UDF that can be entered into a cell of each sheet of a
>workbook that will show the page number of that sheet( sheet index number).
>If pages are deleted or added in between other sheets, it should
>recalculate.
This returns the name of the worksheet:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))
That will work just fine if the names of your worksheets are simply
consecutive numbers starting with "1"
::chuckle::
I don't know of a way to return the index number without using a VBA
module.
MP-
--
"Learning is a behavior that results from consequences."
B.F. Skinner
Bookmarks