Ubound(arrayname[,dimension])
Returns the value of the largest usable subscript for the specified dimension of an array.
Related Topics: Dim, Global, Lbound, and Option Base
More:
Example: