I need to create a VBA function that takes in two arrays; the first array has the numeric values while the second array has the names. The function will find the value in the first array that is the largest and return the corresponding name (from the second array). However, I cannot use the Max function within my created function. The function also needs to begin like this:
Function FindMax(valueArray, nameArray) As String
Thanks for any help you can provide.
Bookmarks