I want to use a typed data of array.

Type myType
X As Long
Y As Long
End Type

Dim myMatrix(20)(20) As myType

But above code is wrong.
How to that right VBA coding?

Another question.
Can I use a Variant array such as

dim myVar as Long = 20
Dim myMatrix(myVar) As myType


Thanks...