Dim matrix(rowCount, columnCount)
For rowIndex = 0 To rowCount
For columnIndex = 0 to columnCount
matrix(rowIndex, columnIndex) = ComputeCellElement(rowIndex, columnIndex)
Private Function ComputeCellElement(rowIndex As Integer, columnIndex As Integer) As Integer
Return rowIndex * columnIndex