Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub AssignArray()
Dim probMatrix(26, 27)
Dim i As Single
Dim ii As Single
For i = 0 To UBound(probMatrix, 1)
For ii = 0 To UBound(probMatrix, 2)
probMatrix(i, ii) = Cells(i + 1, ii + 1)
Next
Next
End Sub
Sub OutputArray()
Dim probMatrix(26, 27)
Dim i As Single
Dim ii As Single
For i = 0 To UBound(probMatrix, 1)
For ii = 0 To UBound(probMatrix, 2)
Cells(i + 1, ii + 1) = probMatrix(i, ii)
Next
Next
End Sub
Sub probRange()
Dim probMatrix As Range
Dim c1 As Range
Set probMatrix = Range(Cells(1, 1), Cells(29, 27))
'Loop through all cells in range
For Each c1 In probMatrix
c1.Value = "Hello"
Next
End Sub
Dim probMatrix
probMatrix = Range("A1:AA29")