I am trying to call a public subroutine from a Windows form based on a string variable containing the name of the subroutine. A subroutine is a procedure in a code module and works great when called using the procedure name directly.
The CallByName VB.net function should work, but I don’t know how to specify the module name as an Object Ref parameter.

In the code shown, "ReportLibrary" is a module containing a public node with the name contained in the strReportProcedure line. As a result, the following error helper appears:

Help reports this ObjectRef parameter:
ObjectRef
Type: System.Object
Required. An object. A pointer to an object that displays a property or method.
CallByName?