I\'m only posting this since I wasn\'t able to find a solution anywhere. I finally figured it out. Kind of silly really.
When using the RunCode property within an
THEN I read the error message carefully. It mentions that it could not find the FUNCTION name. Apparently, the RunCode property specifically requires a "Function" not a Sub. So, I simply changed my Sub to Function and it worked fine!
Hope this helps.