> Can this be done other than comparing each
> individual field one at a time?
Not the best solution, but if the arrays are numbers, and nonsingular,
maybe generate an identify matrix, and make sure it sums to 4.
This has no error checking.
Sub Demo()
Dim x, y
Dim B As Boolean
x = [A1

4]
y = [A6

9]
Debug.Print ArrayEqual(x, y)
End Sub
Function ArrayEqual(x, y) As Boolean
Dim UL
UL = UBound(x, 1)
With WorksheetFunction
ArrayEqual = Equal(.Sum(.MMult(x, .MInverse(y))), UL)
End With
End Function
Function Equal(x, y) As Boolean
Dim d As Double
d = 0.0000000000001 '1E-13
Equal = Abs(x - y) <= d
End Function
= = = = = = = = =
Again, just one of a few ideas.
Dana DeLouis
Greg Snidow wrote:
> Greetings. Lets say I have two arrays, array1 and array2, both of the same
> dimensions, say four columns and four rows. Is there a way to easily compare
> them? For example, I want to do If array1.value = array2.value. Can this be
> done other than comparing each individual field one at a time? Thank you.
>
> Greg