I don't think this is what he was asking for.
He was asking for the "For Each"-Syntax.
: : Is it possible to use the For Each loop for multi dimensional Arrays
: :
Yes, it is possible, but the solution contains a death-defying hack, which you as a beginner shouldn't even consider using it.
:
: yes, see example-
:
:
:
:
: Option Explicit
:
:
: Dim a(1 To 2, 1 To 5) As String
:
:
: Private Sub Command1_Click()
: Dim i As Integer, j As Integer
:
: For i = 1 To 2
: For j = 1 To 5
: 'assign value to array
: a(i, j) = CStr(i) & "," & CStr(j)
: Next j
: Next i
:
: For i = 1 To 2
: For j = 1 To 5
: 'show array value
: MsgBox a(i, j)
: Next j
: Next i
:
: End Sub
:
:
------------------------------------------
Only stupidity of mankind and the universe
are infinite, but i'm not sure concerning
the universe. A. Einstein