Is it possible to compare two User Defined Variables with operators ie : = > <
Here is an example but it causes an Compile error (Type mismatch)
x As Long
y As Long
Dim tVar1 As UDTTest
Dim tVar2 As UDTTest
tVar1.x = 1
tVar1.y = 2
tVar2 = tVar1
MsgBox tVar1 = tVar2
I know I could have comapared the Xs and the Ys respectively but I the UDTs I have contain many variables.
How do I compare two User Defined Variables in one go ?