NicolaasH
Technical User
- Sep 11, 2007
- 38
I was wondering how I can efficiently pass an array from one procedure to the other. VBA accepts the following:
It seems like I cannot declare the dimensions of the array in the sub statement. I was wondering what the dimensions of the array are in CompleteOmmissions. Is it still a bounded array of 8 by 14 integers, or is it an unbounded variant array (memory inefficient)
Thanks!
Nick
Code:
Public Sub Checksheet()
Dim OmmissionArray(1 To 14, 1 To 8) As Integer
'......some stuff to fill the array
CompleteOmmissions OmmissionsArray:=OmmissionsArray
End Sub
Public Sub CompleteOmmissions(OmmissionsArray)
'.....rest of programming
End Sub
It seems like I cannot declare the dimensions of the array in the sub statement. I was wondering what the dimensions of the array are in CompleteOmmissions. Is it still a bounded array of 8 by 14 integers, or is it an unbounded variant array (memory inefficient)
Thanks!
Nick