
Originally Posted by
Marcol
Your workbook is extremely difficult to follow, for me at least
Where are you calling the UDF?
In addition to volatile functions, you have 252 named ranges, references to whole columns, (this in 2007 and above is causing 1,048,576 calculations), etc.
The function MLOOKUP() also calls whole columns
Try this first and see if it returns the result you are expecting
This line in particular is returning 1,048,576 for the Ubound value
For r = fFoundNo To UBound(KA1, 1)
I'm pretty sure that most of the code is redundant, but first we need to clearly establish what you are trying to do.
Bookmarks