Arrays always do my head in. Find a simple piece of code of what I'm trying to do.
As I would normally throw variables into an array using:
aTest = array(1,2,3,4,5)
Is it possible to do this for multiple dimensional ones?
As I would normally throw variables into an array using:
aTest = array(1,2,3,4,5)
Is it possible to do this for multiple dimensional ones?
Code:
Dim sTest(4, 4) As String
Dim ii As Integer, jj As Integer
sTest(0) = Array("hi", "Hello", "Bye", "No", "yes")
sTest(1) = Array("salut", "bonjour", "au revoir", "non", "Oui")
For ii = 0 To sTest.Rank - 1
For jj = LBound(sTest(ii)) To UBound(sTest(ii))
Debug.Print sTest(ii, jj)
Next jj
Next ii
End Sub