how to get ubound of a multidimensional array
Posts. 3,828. UBound returns the upper-bound for a dimension in an array so you have to specify the dimension in the 2nd paramter. if you leave it blank then it will just assume you meant the 1st dimension. i.e. VB Code: Msgbox UBound(Myarray, 2) 'For the 2nd dimension. VB Code: Msgbox UBound (Myarray, 2) 'For the 2nd dimension.