Hi, anyone please me save
how do i translate this to a vba code
=INDEX('16090540'!D2:D296,MATCH(MAX('16090540'!N2:N296),'16090540'!N2:N296,0))
what i have done is
test = Application.WorksheetFunction.Index(Sheets("16090540").Range("D2:D296"),Application.WorksheetFunction.Match(Application.WorksheetFunction.Max(Sheets("16090540").Range("N2:N296"),Sheets("16090540").Range("N2:N296"),0))
But I keep getting an error, may i know whats wrong with it?
how do i translate this to a vba code
=INDEX('16090540'!D2:D296,MATCH(MAX('16090540'!N2:N296),'16090540'!N2:N296,0))
what i have done is
test = Application.WorksheetFunction.Index(Sheets("16090540").Range("D2:D296"),Application.WorksheetFunction.Match(Application.WorksheetFunction.Max(Sheets("16090540").Range("N2:N296"),Sheets("16090540").Range("N2:N296"),0))
But I keep getting an error, may i know whats wrong with it?