View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Calaozao Calaozao is offline
external usenet poster
 
Posts: 1
Default built-in function doesn't work properly

This simple Function doesn't update the result.... I have to edit the cell to
calculate new result. The easiest way i found is to prees 'F2' and 'Enter'
for each cell that have this function...

Thanks for any help


Function CupaoActual(RangeDatasCupao As Range) As Byte
Dim j As Byte

For j = 1 To RangeDatasCupao.Count
If RangeDatasCupao(1, j) Range("TodayDate") Then
CupaoActual = j - 1
Exit Function
End If
Next

End Function