JakeBushnell,
Which UBound (upper boundary) are you referring to in this VBA code phrase:
UBound(TempArray)
After all you say that the array is 2 dimensional, 4 x 56 and yet you haven't specified the what upper boundary you want to count - 1, 2, 3 or 4. When declaring the array I assume you declared it as:
Dim TempArray(4, 56) As Variant
Unless you are populating each of the 4 elements of the array equally it is possible that they are not the same. If the array is full (56 items) then you don't need to use Ubound(TempArray) at all.
Patrick
Main Topics
Browse All Topics





by: tilak_buddyPosted on 2009-08-04 at 14:03:42ID: 25018134
What is the value of TempArray???
Thats is why error prompting in Ubound(TempArray) below line
For i = 1 To UBound(TempArray) - 1