Grenky
Коли голова дымит, то можно так
Код: Sub proga()
CurrentRow = 2
CurrentCol = 2
CurrentMin = Cells(CurrentRow, CurrentCol)
For i = 2 To 6 ' по строчкам
For j = 2 To 8 ' по столбцам
If Cells(i, j) < CurrentMin Then
CurrentRow = i
CurrentCol = j
CurrentMin = Cells(CurrentRow, CurrentCol)
End If
Next j
Next i
Cells(10, 1) = "Значение"
Cells(10, 2) = "Шир"
Cells(10, 3) = "Долг"
Cells(11, 1) = CurrentMin
Cells(11, 2) = Cells(CurrentRow, 1)
Cells(11, 3) = Cells(1, CurrentCol)
End Sub
Коли голова дымит, то можно так
Код: Sub proga()
CurrentRow = 2
CurrentCol = 2
CurrentMin = Cells(CurrentRow, CurrentCol)
For i = 2 To 6 ' по строчкам
For j = 2 To 8 ' по столбцам
If Cells(i, j) < CurrentMin Then
CurrentRow = i
CurrentCol = j
CurrentMin = Cells(CurrentRow, CurrentCol)
End If
Next j
Next i
Cells(10, 1) = "Значение"
Cells(10, 2) = "Шир"
Cells(10, 3) = "Долг"
Cells(11, 1) = CurrentMin
Cells(11, 2) = Cells(CurrentRow, 1)
Cells(11, 3) = Cells(1, CurrentCol)
End Sub