vba ubound array 2-dimensional

The solution for “vba ubound array 2-dimensional” can be found here. The following code will assist you in solving the problem.

Dim arr(1 To 4, 1 To 3) As Variant
Debug.Print UBound(arr) ‘ returns 2
Debug.Print UBound(arr, 1) ‘ returns 4
Debug.Print UBound(arr, 2) ‘ returns 3

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts