Answer the question
In order to leave comments, you need to log in
How to create a macro for the minimum and maximum values in a table?
Tell me how to create a macro for the maximum and minimum values?
There is this table
I tried to do it myself, but it turns out not quite right. Can anyone advise?
Sub Up()
Dim R As Long
R = InputBox("Задать номер строки")
With Worksheets("Лист1").Rows(R)
MsgBox "Max" & WorksheetFunction.Max(.Cells) & vbNewLine & _
"Min" & WorksheetFunction.Min(.Cells)
End With
End Sub
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