Answer the question
In order to leave comments, you need to log in
Find smallest element of vba array?
Welcome all. Asked at the institute.
Need to find the smallest element of a 4x2 matrix
Dim A() As Single
Dim i As Integer, j As Integer
Dim max As Single
Randomize
ReDim A(1 To 4, 1 To 2)
For i = 1 To 4
For j = 1 To 2
A(i, j) = Int(91 * Rnd - 67)
Label1.Caption = Label1.Caption & A(i, j) & vbTab
Next j
Label1.Caption = Label1.Caption & vbNewLine
Next i
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question