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
My mistake was putting the function in a Class Module instead of a regular module.