Basically I have a piece of code (5 lines commented out toward the end) that runs fine as part of the macro, however I wanted to use the exact same piece of code (only changing one number to a variable) run as a separate function, to make the code look tidier. However when I run that code as a separate function being called I get the error message. "Sub or function not defined."
To see what the program is supposed to do uncomment the block starting with Dim Phenotype... and comment the the line Result(0).
(The last few lines are the important bit, the rest are just declarations)
Bookmarks