I'm trying to summarize some data from an external workbook. The problem is that the worksheet names there are months (Jan2009, Feb2009 etc.) and the sheets rotate (change position) with time. In the summarizing workbook I would like to use a function to refer to (for example) cell A1 on the third worksheet, regardless of the current name of that worksheet. So I might have a cell in the summary workbook that looks something like
"=CoolFunction(ExternalWB.xls, 3, A1)"
The brilliant Chip Pearson has what might be helpful at http://cpearson.com/excel/sheetref.htm -- scroll down to "Getting The Name Of A Sheet By Position Number" . . . SheetNameOfIndex is a function that I can get to work *within the summary worksheet* (as in =SheetNameOfIndex(4) ) but I can't make it work to return the name of a sheet in an external workbook.
Anyone have any ideas, whether in using Chip's function or in a different direction?
Thanks kindly --
Bookmarks