Using SUMPRODUCT Function on Calculated (Function-Derived) Dat
That didn't appear to work either, but I did find something extremely
strange:
When I run the subroutine above, I get the usual Type Mismath error.
However, I stumbled upon the strange thing:
To verify that my string was correct, I put a breakpoint at the
Evaluate statement (so I can verify the value of the string I am
evaluating). The strange part is that the Evaluate will error out, so
I copy the string value from the watch window and paste it into an
IDENTICALLY FORMATTED, BUT SEPARATE WORKBOOK, and it works fine.
THEN, if I return to VBA and drag the yellow arrow up one step so the
Evaluate is executed again, IT WORKS.
Does this make sense?
|