I am trying to write a function that measures the size of a user-defined array (for example, the input on this is a 2x2 array in excel, each cell contains a "1" [Excel Formula {=RRR(A1:B2)} - see below]) so I can build a function around that information.
Everything else in my function works but this particular section. The error message is "Expected Array". Apparently "rng" is not being input as an array. (See code below)
Public Function RRR(rng As Range)
RRR = UBound(rng, 1)
End Function