I have a cell whose value is an array constant,
for example cell A1 is set to ={1,2,3,4,5,6}
I then defined a function in VBA:
Function MyFunc(Data)
MyFunc = Data.Rows.Count
End Function
I want the function to return the length of the array (6) when I can =MyFunc(A1), but using the debugger, I find the 'Data' variable my function receives only contains the first element of this array.
Data.Rows.Count evaluates to 1 and TypeName(Data) evaluates to 'Range'

Datais not an array, but aRangeobject.Range.Valueis an array only if the range is for more than a single cell.