Hello guys,
I've been having trouble getting global variables to work.
Module1 code:
Module2 code:
All i want is to throw over my test variable value and update it. But once i reach module2, no value exists for test and once done the value of test = 2
Global instead of public yields the same result
My desired result is, test = 3. What am i doing wrong
I've been having trouble getting global variables to work.
Module1 code:
Code:
Option Explicit Public Test As Variant
Sub init()
test = 2
Call testing
End Sub
Code:
Option Explicit Sub Testing()
test = 3
End Sub
Global instead of public yields the same result
My desired result is, test = 3. What am i doing wrong
Last edited: