I Declare an 2D Unlimited array. My code:
Dim array As String(,) = New String(,) {}
array(0, 0) = "top left"
MsgBox(array(0, 0))
The problem is the msgbox shows nothing.
You can change the array bounds when needed with ReDim Preserve, which copies the existing array into an array with new dimensions.
But it might be simpler to use a List instead, which is "unlimited" (no need to specify range, or resize manually). But a list only has one dimension. To mimick a 2D array, you could have a List of Lists (each List item is a List itself).
Dictionaryinternally.