I have a complex formula used in 100's of range names. I use a macro to build the formula for me because it's too easy to screw it up when typing manually.
Excel can't evaluate the formula when using the Name->Define dialogue.
When I put my cursor in the RefersTo box, there are no marching ants around the range being defined. Names("myName").RefersToRange returns nothing in my VBE code.
But I can find no evidence that formulas in my workbook that refer to the range have any problem. "=Index(myName,4,1)" always gets the correct value. "=Rows(myName)" is always correct. So obviously Excel can and does evaluate the range correctly.
I'm trying to determine if that will cause any kind of problems because Excel can evaluate the formula sometimes but not at other times. I can't think of what to Google to find if there are any reports or studies dealing with this issue.
The formula defines a dynamic range from just 1 cell address so that the range can be cut and pasted to another location, and it's not volatile.
I don't think this will help, but here is the formula:
Any help with what to Google would be appreciated. Or if you can point to a knowledge base article, would be great.Please Login or Register to view this content.
Bookmarks