I cannot match the maximum value of a range into the same range. This with the purpose to know in which column i can find the maximum value.
im trying with this code
Set rango = Range(Cells(45, W), Cells(46, W1))
rango.Select
maximo = WorksheetFunction.Max(rango)
matching = Application.Match(CLng(maximo), Sheets("Dinamicos").Range(Cells(45, W), Cells(46, W1)), 0)
but i get the 2042 error. In this Section im trying to match percentages if i use the code
Set rango = Range(Cells(45, W), Cells(46, W1))
rango.Select
maximo = WorksheetFunction.Max(rango)
matching = WorksheetFunction.Match.Match(CLng(maximo), Sheets("Dinamicos").Range(Cells(45, W), Cells(46, W1)), 0)
i get the runtime error 1004 Unable to get the Match property of the WorksheetFunction