I'm trying to load an array into a public array variable in one procedure tren use it in another and the procedure will not accept the array. I'm not sure how to go about doing this. Thanks for any help. Here's the gist of my code:
Public array1() As Double
Sub loadarray1()
....load array1()
End Sub
Sub mySub
myfunc(array1()) 'Error here "procedure or sub not defined".
End Sub
Public array1() As Double
Sub loadarray1()
....load array1()
End Sub
Sub mySub
myfunc(array1()) 'Error here "procedure or sub not defined".
End Sub