I can use the worksheetfunction.max() to get the maximum value in a range, but how can I instead return the row number of said maximum value?
myval = Application.Max(Range("A1:A10")
Range("A1:A10").Find(myVal, , xlValues).Row
If you want a formula, looking in column A: =ROW(INDEX(A2:A8,MATCH(MAX(A2:A8),A2:A8),1))
MsgBox Range("A1:A10").Find(WorksheetFunction.Max(Range("A1:A10"))).Row