L
Les
I have discovered I can call a previously written event code from a new one
simply by repeating the name of that routine. Obvious, I guess, for a
programmer, but nice to discover for a beginner.
My question is: I dim a variable in the first routine, then call the
second. But, the VB error box always appears with:
"Compile error: Variable not defined."
If I dim the variable in the second routine, it loses the value it was
assigned from the first routine.
How do I pass the value of a variable from one event code (routine) to
another? Or can variables only be recognized within the same routine?
Les
simply by repeating the name of that routine. Obvious, I guess, for a
programmer, but nice to discover for a beginner.
My question is: I dim a variable in the first routine, then call the
second. But, the VB error box always appears with:
"Compile error: Variable not defined."
If I dim the variable in the second routine, it loses the value it was
assigned from the first routine.
How do I pass the value of a variable from one event code (routine) to
another? Or can variables only be recognized within the same routine?
Les