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

Public Function RemoteCalled()
A=X"2+2
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.

Thanks

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