Returns 9.Code:dim myarray(9,5,3)
debug.print ubound(myarray())
How do I get it to return the 5 or 3? MSDN only shows an example with a 1D controll array....
Printable View
Returns 9.Code:dim myarray(9,5,3)
debug.print ubound(myarray())
How do I get it to return the 5 or 3? MSDN only shows an example with a 1D controll array....
Does this help?
vb Code:
Sub aaa() Dim DemoArray(9, 5, 3) MsgBox UBound(DemoArray, 1) 'will give you 9 MsgBox UBound(DemoArray, 2) 'will give you 5 MsgBox UBound(DemoArray, 3) 'will give you 3 End Sub
What you show isn't a control array but in any case
ubound(myarray, 2)
ubound(myarray, 3)