I'm writing a simple VBA program based on Excel which is no longer simple. Simply put, I have a workbook containing worksheets of people's names and their bowling scores. I have another Excel workbook which includes the list of bowlers and their average and handicap which is the last line of their individual worksheet. Accessing the value is no problem if I hard code it as:
=CELL("contents",'[Bowlers.xls]First Lastname'!$D$3)
The problem is that the name is in the first column so I wanted to dynamically pick it up as "[Bowlers.xls]T(A1)".Then it would be a simple matter of copying the formula down for all the bowlers. I'm stuck. How do you dynamically specify worksheet names in Excel.
I might be able to do this using VBA, however, I would have to run this program once everytime the workbook is opened. I don't even know how to do that now.
Dan
=CELL("contents",'[Bowlers.xls]First Lastname'!$D$3)
The problem is that the name is in the first column so I wanted to dynamically pick it up as "[Bowlers.xls]T(A1)".Then it would be a simple matter of copying the formula down for all the bowlers. I'm stuck. How do you dynamically specify worksheet names in Excel.
I might be able to do this using VBA, however, I would have to run this program once everytime the workbook is opened. I don't even know how to do that now.
Dan