Hi there,
What I am trying to do is have a function update automatically whenever a new worksheet is added to my workbook.
This is the base formula I want. I have tested and it works.
Now, what I want to do is have worksheet5 update every time I add a new sheet. Ex. When I add worksheet6 I want the function to update to this:
.
I used an idea I found on eggheadcafe, submitted by Peter Atherton. It involves creating a User Defined Function like so:
I then put in a cell(E29) this:
.
This results in E29 being populated with
. In another cell I put
and I get #REF! I tried naming cell E29 and using the name in the formula, but got the same result. When I evaluate the formula it shows that it is evaluating E29 before the indirect function, so that when it gets to the function it is actually evaluating as
. That shouldn't happen, should it?
thanks,
Damon
Bookmarks