I have a sub (initialisation
) which contains several arrays. I am then creating another sub (testSub
) which have to access one of the arrays in initialisation
. I am unsure how to do this and would appreciate any help you can offer.
Initialisation sub:
Sub initialisation()
init_array = Array("apple", "orange", "car")
init_array_2 = Array("coconut", "keys", "blue")
End Sub
testSub:
Sub testSub()
For Each element in init_array 'Does not work currently
[do stuff]
Next
End Sub