Function to find the address of a cell
I'm running excel 2003.
I referenced a small range A2:A8; containing
4,6,9,7,5,8,2=MinCellAddr(A2:A8)
Function MinCellAddr(rg As Range) As String
Dim MinNum As Double
MinNum = Application.WorksheetFunction.Min(rg)
MinCellAddr = rg.Find(what:=MinNum, _
LookIn:=xlValues, lookat:=xlWhole).Address
End Function
"Ron Rosenfeld" wrote in message
...
On Thu, 8 Dec 2005 21:15:05 -0500, "Tom Ogilvy" wrote:
But a more likely cause is that Find doesn't work in a UDF used in a
worksheet in xl2000 and earlier.
--
Regards,
Tom Ogilvy
I've seen that written here before, but completely forgot about it.
We'll see what the OP has to say about his Excel version. Could always do a:
for each c in rg
test it
next c
which hopefully won't be too slow unless rg is huge.
--ron
|