Thread: Cell address
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Myrna Larson Myrna Larson is offline
external usenet poster
 
Posts: 863
Default Cell address

In VBA? Assuming this is a 2-dim range rather than a single column or single
row,

Set Rng1 = Range("A1:K22")
x = Application.Min(Rng1)
Set Rng2 = Rng1.Find(What:=x, After:=Rng1.Cells(Rng1.Cells.Count))
MsgBox Rng2.Address


On Sat, 06 Nov 2004 22:49:31 GMT, "Neil" wrote:

Hi!

How do I find the address of the cell that contains the minimum value in a
range.

Thanks in advance,

Neil