Quote Originally Posted by sancarn View Post
I think this is a long shot... But if I have a module named e.g. "mHello":

vb Code:
  1. Function a() as Variant
  2.    a=1
  3. End Function
  4. Function b() as Variant
  5.    b=2
  6. End Function
  7. Function c() as Variant
  8.    c=3
  9. End Function

Can I get a handle to mHello such that GetProcAddress(addr,"b") gets the function handle of function b?

Alternatively, is there a way to call function b, and obtain the results, fully dynamically without going through Application.Run?
Have you looked at AddressOf and CallWindowProc ?

Or better Addressof and DispCallFunc.