View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
dk[_2_] dk[_2_] is offline
external usenet poster
 
Posts: 21
Default Please help me solve my problem

On Mar 5, 1:01*pm, Sacha David wrote:
Hi, *I Have a cell say a1 that has a continuously changing number it
in and I want to track the highest number that it prints, *and the
same for the lowest number in cell a2. I would like these results to
show up in the cells below them

Im very new to programming and your help would be much appreciated

many thanks

Sacha David


One way is to write a macro:

Dim prvValue as integer

Sub Get_Max()

Application.Volatile

if prvValue<range("A1").value
prvValue = range("A1").value
end if
range("A2").value = prvValue

End Sub