Private Sub Command1_Click()
Dim i As Long
Dim j As Long
Dim p(1 To 3, 1 To 3) As String
For i = 1 To 3
Debug.Print
For j = 1 To 3
p(i, j) = Int(Rnd * 10)
Debug.Print p(i, j) & ",";
Next j, i
For i = 1 To 3
Debug.Print
For j = 1 To 3
Debug.Print p(j, i) & ",";
Next j, i
End Sub