Pass value from function

PrincessBretti

Registered User.
Local time
Today, 17:02
Joined
Mar 16, 2000
Messages
14
Hi,

I need to pass a value from a function from one form to a procedure on another form, how can I do this???

Cheers

Princess
 
Put the value in a variable the is publically declared, not dimmed. At the top of a module (any module), put:

Public MyVariable As Long 'or string, etc.

Then in the first form:

MyVariable = fMyFunction

Then in the second form, use MyVariable where you need it.
 

Users who are viewing this thread

Back
Top Bottom