Hello,
I am looking to find the max or min in each column of a VBA array. I have already calculated the Max/Min and am now looking to find the position of that value within each column. I am getting a syntax error because I do not know how to tell excel to look through all the rows for each column. Below is a the problem in my code. Is there a wildcard or something I can put in place of the row argument?
dim Res (12,10) as Variant
dim pos as Double
dim Min as Double
for m = 1 to 10
pos = WorksheetFunction.Match(Min, Res(Rows, m - 1), 0)
next m
Thanks in advance,
Rob
I am looking to find the max or min in each column of a VBA array. I have already calculated the Max/Min and am now looking to find the position of that value within each column. I am getting a syntax error because I do not know how to tell excel to look through all the rows for each column. Below is a the problem in my code. Is there a wildcard or something I can put in place of the row argument?
dim Res (12,10) as Variant
dim pos as Double
dim Min as Double
for m = 1 to 10
pos = WorksheetFunction.Match(Min, Res(Rows, m - 1), 0)
next m
Thanks in advance,
Rob