I need help on how a function created on Form1 can be called from Form2. E,g,

Public Function RemoteCalled()
End Function

'Then from Form 2,
Call RemoteCalled

I use VB6.

Thanks for your quick response

As long as it's a Public Function, which you have, just add the form name: Call Form1.RemoteCalled()

You need to define the function in a standard module (.bas file).
Once the function is public it will have global scope.

Hi lawal2000,

Both help provided by WaltP and dibasisdas will work as long as your function is Public. I have tried here and it is working good.


I think debasis Idea is nice. but waltp said on your topic (what you want to know)