VBA using ubound on a multidimensional array
arrays, excel, vba
Solution
ubound(arr, 1)
and
ubound(arr, 2)
Problem
Ubound can return the max index value of an array, but in a multidimensional array, how would I specify WHICH dimension I want the max index of? For example ``` Dim arr(1 to 4, 1 to 3) As Variant ``` In this 4x3 array, how would I have Ubound return 4, and how would I have Ubound return 3?