Min Function on 2D Array
ExcelMonkey wrote:
Allan, I cannot get this line to work:
MinRow = Application.WorksheetFunction.Min(Array1, 2)
I keep getting a "Sub of Function not defined" error.
I event tried the following and recieved an "Arguement not optional" error
MinRow =
Application.WorksheetFunction.Min(Application.Work sheetFunction.Index(Array1,
, 2))
As I said in my last post
Application.WorksheetFunction.Min(Application.Inde x(Array1,,2))
It also works with
Application.WorksheetFunction.Min(Application.Work sheetFunction(Array1,0,2))
Alan Beban
I believe that
Application.WorksheetFunction.Min(Array1, 2)
returns the minimum of all the elements in Array1 and 2; i.e., if Array1
is {1,6,7;8,4,3}, then it returns the minimum of 1,6,7,8,4,3 and 2.
Alan Beban
|