Mike Eghtebas
asked on
return max. value from a range...
There is a named-range (R_01) representing the following cells:
Formulas!$D$1:$AA$2
Question: How can I detect the max. value in this range?
MsgBox fnRangeMax("R_01")
Public Function fnRangeMax(strRangeName As String)
fnRangeMax = <how to look through this R_01 and return the max. value it has?>
End Function
Thank you.
Formulas!$D$1:$AA$2
Question: How can I detect the max. value in this range?
MsgBox fnRangeMax("R_01")
Public Function fnRangeMax(strRangeName As String)
fnRangeMax = <how to look through this R_01 and return the max. value it has?>
End Function
Thank you.
ASKER
Can I also enter this a formula into a cell?
=Max(Range("R_01"))
I tired this it didn't work. Any idea how this would work if possible at all?
Mike
=Max(Range("R_01"))
I tired this it didn't work. Any idea how this would work if possible at all?
Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
Public Function fnRangeMax(strRangeName As String)
Set rg = Range("R_01")
fnRangeMax = Application.Max(rg)
End Function
Flyster