Vba Array Dimensions

[Solved] Vba Array Dimensions | Vb - Code Explorer | yomemimo.com
Question : vba array dimensions

Answered by : vastemonde

Public Function ArrayDimensions(ByRef Arr As Variant) As Integer Dim indDim As Integer Dim result As Integer On Error Resume Next Do indDim = indDim + 1 result = UBound(Arr, indDim) Loop Until err.Number <> 0 ArrayDimensions = indDim - 1
End Function

Source : | Last Update : Fri, 19 Feb 21

Answers related to vba array dimensions

Code Explorer Popular Question For Vb