XLA routines: EE_IsArray

Nick's picture
VBA's IsArray function doesn't work so well, so use this one for a n by n array.
Function EE_IsArray(varArgument As Variant) As Boolean
'- takes variant
'- returns whether it really is an array. (By checking whether theArray(1,1) exists)
'http://excelexperts.com/xla-routines-eeIsArray    for updates on this function

On Error GoTo IsNotArray
    EE_IsArray = True
    Dim temp
    temp = varArgument(1, 1)
    Exit Function
IsNotArray:
    EE_IsArray = False
End Function