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
I had a similar issue with the error message. My VBA code had the following declaration:
private function MyFunction() .... end function
I removed private declaration to get the Macro Runcode to execute the MyFunction()
private
Macro Runcode
MyFunction()
For example:
Function MyFunction() End Function