Hi
OK, I opened the example file from #1, selected cell APDir!I13, F2, Enter.
Then I made sure that myfunc and the macro above were both in a general module in that workbook.
I changed the line
to be
as it isn't an inbuilt worksheetfunction.
It put a result into Sheet2!A53, but then errored out - probably because of the disconnect between the filled column A, and the full column B being actioned.
However, why not put in the function directly. If you don't want the function left, then have the macro run it directly into the cell(s) required, then value paste the results.
rylo
Bookmarks